equal
deleted
inserted
replaced
201 CleanupStack::PopAndDestroy(); // file |
201 CleanupStack::PopAndDestroy(); // file |
202 } |
202 } |
203 |
203 |
204 } |
204 } |
205 |
205 |
206 void PluginStream::destroyStream(int reason) |
206 void PluginStream::destroyStream(int reason, TDesC* failedUrl) |
207 { |
207 { |
208 if (m_streamDestroyed) return; |
208 if (m_streamDestroyed) return; |
209 m_streamDestroyed = true; |
209 m_streamDestroyed = true; |
210 |
210 |
211 TInt16 npreason( NPRES_BASE ); |
211 TInt16 npreason( NPRES_BASE ); |
233 npreason = NPRES_NETWORK_ERR; |
233 npreason = NPRES_NETWORK_ERR; |
234 break; |
234 break; |
235 } |
235 } |
236 |
236 |
237 |
237 |
238 if ( m_pluginskin->getNPPluginFucs() && m_pluginskin->getNPPluginFucs()->destroystream ) { |
238 if ( m_pluginskin->getNPPluginFucs() ) { |
239 m_pluginskin->getNPPluginFucs()->destroystream( m_pluginskin->getNPP(), m_stream, npreason); |
239 |
|
240 if (m_stream && m_pluginskin->getNPPluginFucs()->destroystream){ |
|
241 m_pluginskin->getNPPluginFucs()->destroystream( m_pluginskin->getNPP(), m_stream, npreason); |
|
242 if (m_loaderclient->notify() && m_pluginskin->getNPPluginFucs()->urlnotify) |
|
243 m_pluginskin->getNPPluginFucs()->urlnotify( m_pluginskin->getNPP(), m_stream->url->Des(), npreason, m_notifydata); |
|
244 } |
|
245 |
|
246 if(!m_stream && m_loaderclient->notify() && failedUrl && m_pluginskin->getNPPluginFucs()->urlnotify){ |
|
247 m_pluginskin->getNPPluginFucs()->urlnotify( m_pluginskin->getNPP(), *failedUrl, npreason, m_notifydata); |
|
248 } |
240 } |
249 } |
241 |
250 |
242 if (reason == KErrNone) { |
251 if (reason == KErrNone) { |
243 m_pluginskin->forceRedraw(true); |
252 m_pluginskin->forceRedraw(true); |
244 } |
253 } |