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

Unified Diff: Source/core/loader/FrameLoaderClient.h

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised method for widget lifetime management. Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/loader/FrameLoaderClient.h
diff --git a/Source/core/loader/FrameLoaderClient.h b/Source/core/loader/FrameLoaderClient.h
index 3539f7ccd7d2d0a1f7b4ffe367a4b086d8f9b83e..610fe3b466f24a2f3bd2fb665aecc1efcab77fea 100644
--- a/Source/core/loader/FrameLoaderClient.h
+++ b/Source/core/loader/FrameLoaderClient.h
@@ -90,6 +90,7 @@ class FetchRequest;
class FrameLoaderClient {
public:
+ enum PluginLoadType { PluginLoadRequiresRenderer, PluginLoadWithoutRenderer};
virtual ~FrameLoaderClient() { }
virtual void frameLoaderDestroyed() = 0;
@@ -168,7 +169,8 @@ class FetchRequest;
virtual void transitionToCommittedForNewPage(Frame*) = 0;
virtual PassRefPtr<Frame> createFrame(const KURL&, const String& name, const String& referrer, HTMLFrameOwnerElement*) = 0;
- virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually) = 0;
+ virtual bool canCreatePluginWithoutRenderer(const String& mimeType) const = 0;
+ virtual PassRefPtr<Widget> createPlugin(const IntSize&, HTMLPlugInElement*, const KURL&, const Vector<String>&, const Vector<String>&, const String&, bool loadManually, PluginLoadType = PluginLoadRequiresRenderer) = 0;
virtual PassRefPtr<Widget> createJavaAppletWidget(const IntSize&, HTMLAppletElement*, const KURL& baseURL, const Vector<String>& paramNames, const Vector<String>& paramValues) = 0;

Powered by Google App Engine
This is Rietveld 408576698