Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp

Issue 10905105: Merge 125500 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011, 2012 Research In Motion Limited. All rights r eserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 Research In Motion Limited. All rights r eserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public 5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 339
340 // If it's not the plugin type we support, try load directly from browser. 340 // If it's not the plugin type we support, try load directly from browser.
341 if (m_frame->loader() && m_frame->loader()->subframeLoader() && !url.isNull( )) 341 if (m_frame->loader() && m_frame->loader()->subframeLoader() && !url.isNull( ))
342 m_frame->loader()->subframeLoader()->requestFrame(element, url, String() ); 342 m_frame->loader()->subframeLoader()->requestFrame(element, url, String() );
343 343
344 return 0; 344 return 0;
345 } 345 }
346 346
347 void FrameLoaderClientBlackBerry::redirectDataToPlugin(Widget* pluginWidget) 347 void FrameLoaderClientBlackBerry::redirectDataToPlugin(Widget* pluginWidget)
348 { 348 {
349 ASSERT(!m_pluginView);
350 m_pluginView = static_cast<PluginView*>(pluginWidget); 349 m_pluginView = static_cast<PluginView*>(pluginWidget);
351 m_hasSentResponseToPlugin = false; 350 if (pluginWidget)
351 m_hasSentResponseToPlugin = false;
352 } 352 }
353 353
354 void FrameLoaderClientBlackBerry::receivedData(const char* data, int length, con st String& textEncoding) 354 void FrameLoaderClientBlackBerry::receivedData(const char* data, int length, con st String& textEncoding)
355 { 355 {
356 if (!m_frame) 356 if (!m_frame)
357 return; 357 return;
358 358
359 if (m_cancelLoadOnNextData) { 359 if (m_cancelLoadOnNextData) {
360 m_frame->loader()->activeDocumentLoader()->stopLoading(); 360 m_frame->loader()->activeDocumentLoader()->stopLoading();
361 m_frame->loader()->documentLoader()->writer()->end(); 361 m_frame->loader()->documentLoader()->writer()->end();
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 void FrameLoaderClientBlackBerry::dispatchDidLoadFromApplicationCache(const Reso urceRequest&) 1242 void FrameLoaderClientBlackBerry::dispatchDidLoadFromApplicationCache(const Reso urceRequest&)
1243 { 1243 {
1244 ASSERT(isMainFrame()); 1244 ASSERT(isMainFrame());
1245 if (!isMainFrame()) 1245 if (!isMainFrame())
1246 return; 1246 return;
1247 1247
1248 m_webPagePrivate->m_client->notifyDidLoadFromApplicationCache(); 1248 m_webPagePrivate->m_client->notifyDidLoadFromApplicationCache();
1249 } 1249 }
1250 1250
1251 } // WebCore 1251 } // WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/html/PluginDocument.cpp ('k') | Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698