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

Unified Diff: public/web/WebPlugin.h

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle shared-renderer case. Created 6 years, 9 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 | « public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebPlugin.h
diff --git a/public/web/WebPlugin.h b/public/web/WebPlugin.h
index d935150467d521915f0bdd992629f7a758f1c070..a99c3ee217b53642dc33c5c876f58a212d95e6af 100644
--- a/public/web/WebPlugin.h
+++ b/public/web/WebPlugin.h
@@ -64,6 +64,7 @@ public:
virtual void destroy() = 0;
virtual WebPluginContainer* container() const { return 0; }
+ virtual void containerDidDetachFromParent() { }
virtual NPObject* scriptableObject() = 0;
virtual struct _NPP* pluginNPP() { return 0; }
@@ -168,6 +169,7 @@ public:
virtual void rotateView(RotationType type) { }
virtual bool isPlaceholder() { return true; }
+ virtual bool shouldPersist() const { return false; }
protected:
~WebPlugin() { }
« no previous file with comments | « public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698