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

Unified Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 23591016: BrowserPlugin/WebView - Move plugin lifetime to DOM (Chromium-side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update BrowserPlugin tests to reflect new behaviour. Created 6 years, 8 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
Index: content/renderer/browser_plugin/browser_plugin.h
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
index 8079210fd093473b2bbef5fc10b70efefe854c22..3429a8b7c85ad387f72af945ff961ca6d7d28410 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -142,6 +142,7 @@ class CONTENT_EXPORT BrowserPlugin :
// blink::WebPlugin implementation.
virtual blink::WebPluginContainer* container() const OVERRIDE;
+ virtual void containerDidDetachFromParent() OVERRIDE;
virtual bool initialize(blink::WebPluginContainer* container) OVERRIDE;
virtual void destroy() OVERRIDE;
virtual NPObject* scriptableObject() OVERRIDE;
@@ -200,6 +201,8 @@ class CONTENT_EXPORT BrowserPlugin :
virtual bool HandleMouseLockedInputEvent(
const blink::WebMouseEvent& event) OVERRIDE;
+ virtual bool shouldPersist() const OVERRIDE;
+
private:
friend class base::DeleteHelper<BrowserPlugin>;
// Only the manager is allowed to create a BrowserPlugin.

Powered by Google App Engine
This is Rietveld 408576698