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

Unified Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 769363002: Initialize BrowserPluginGuest to attach to the View hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basic_detach_plumbing
Patch Set: Addressed Charlie's comments Created 6 years 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/public/browser/browser_plugin_guest_delegate.h
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h
index 8fa82c66cb8956bb94b04b0030e5bc345d37cc83..dd2621593d4650483fac8c1e5ee9a50c304c50d9 100644
--- a/content/public/browser/browser_plugin_guest_delegate.h
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -36,6 +36,12 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
virtual WebContents* CreateNewGuestWindow(
const WebContents::CreateParams& create_params);
+ // Asks the delegate whether this guest can run while detached from a
+ // container. A detached guest is a WebContents that has no visual surface
+ // into which it can composite its content. Detached guests can be thought
+ // of as workers with a DOM.
+ virtual bool CanRunInDetachedState() const;
+
// Notification that the embedder has completed attachment. The
// |guest_proxy_routing_id| is the routing ID for the RenderView in the
// embedder that will serve as a contentWindow proxy for the guest.
@@ -48,6 +54,9 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
virtual void ElementSizeChanged(const gfx::Size& old_size,
const gfx::Size& new_size) {}
+ // Returns the WebContents that currently owns this guest.
+ virtual WebContents* GetOwnerWebContents() const;
+
// Notifies that the content size of the guest has changed.
// Note: In autosize mode, it si possible that the guest size may not match
// the element size.
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/browser_plugin_guest_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698