Index: content/browser/browser_plugin/browser_plugin_guest.h |
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h |
index 408290fa2fa95154aa405ada27f2de9b637d1bae..c541c0bab3aeced8f9daa1a1d3cb746098772bae 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.h |
+++ b/content/browser/browser_plugin/browser_plugin_guest.h |
@@ -34,6 +34,7 @@ |
#include "content/public/browser/browser_plugin_guest_delegate.h" |
#include "content/public/browser/javascript_dialog_manager.h" |
#include "content/public/browser/render_view_host_observer.h" |
+#include "content/public/browser/site_instance.h" |
#include "content/public/browser/web_contents_delegate.h" |
#include "content/public/browser/web_contents_observer.h" |
#include "content/public/common/browser_plugin_permission_type.h" |
@@ -309,6 +310,10 @@ class CONTENT_EXPORT BrowserPluginGuest |
BrowserPluginGuest* opener, |
bool has_render_view); |
+ // Returns the embedder process' SiteInstance object. Note: A guest will |
+ // always have an embedder SiteInstance even if it is not yet attached. |
+ SiteInstance* GetEmbedderSiteInstance() const; |
+ |
// Destroy unattached new windows that have been opened by this |
// BrowserPluginGuest. |
void DestroyUnattachedWindows(); |