| 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.
|
|
|