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

Unified Diff: Source/core/html/HTMLPlugInElement.h

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleaned up. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLObjectElement.cpp ('k') | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPlugInElement.h
diff --git a/Source/core/html/HTMLPlugInElement.h b/Source/core/html/HTMLPlugInElement.h
index 0647dfd3d2422d80829c2582f571d44aef7139ff..6a45ace05f05a78b7e72d18fefb93bee3db643eb 100644
--- a/Source/core/html/HTMLPlugInElement.h
+++ b/Source/core/html/HTMLPlugInElement.h
@@ -68,6 +68,12 @@ public:
virtual void removeAllEventListeners() OVERRIDE FINAL;
+ void createPluginWithoutRenderer(const String& mimeType);
+ // Allows persisted plugins to be registered by their creator. Call this
+ // function with an argument of 0 to clear the persisted plugin.
+ void setPlugin(PassRefPtr<Widget>);
+ PassRefPtr<Widget> plugin();
eseidel 2013/10/28 16:59:29 Unless this is passing ownership, I doubt you want
+
protected:
HTMLPlugInElement(const QualifiedName& tagName, Document&);
@@ -101,6 +107,10 @@ private:
bool m_isCapturingMouseEvents;
bool m_inBeforeLoadEventHandler;
DisplayState m_displayState;
+
+ // Keep track of any plugins that wish to be persisted.
+ RefPtr<Widget> m_plugin;
+ String m_pluginMimeType;
};
inline HTMLPlugInElement* toHTMLPlugInElement(Node* node)
« no previous file with comments | « Source/core/html/HTMLObjectElement.cpp ('k') | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698