Index: chrome/browser/extensions/webstore_inline_installer.h |
diff --git a/chrome/browser/extensions/webstore_inline_installer.h b/chrome/browser/extensions/webstore_inline_installer.h |
index 583a6c351de6fb31bd0ba67319aa22155d71bbe6..d4692ec11fdc890aed223ba28faf663ab580a2a9 100644 |
--- a/chrome/browser/extensions/webstore_inline_installer.h |
+++ b/chrome/browser/extensions/webstore_inline_installer.h |
@@ -31,6 +31,7 @@ class WebstoreInlineInstaller : public WebstoreStandaloneInstaller, |
typedef WebstoreStandaloneInstaller::Callback Callback; |
WebstoreInlineInstaller(content::WebContents* web_contents, |
+ content::RenderFrameHost* host, |
const std::string& webstore_item_id, |
const GURL& requestor_url, |
const Callback& callback); |
@@ -61,6 +62,9 @@ class WebstoreInlineInstaller : public WebstoreStandaloneInstaller, |
private: |
// content::WebContentsObserver interface implementation. |
+ void FrameDeleted(content::RenderFrameHost* render_frame_host) override; |
+ void RenderFrameHostChanged(content::RenderFrameHost* old_host, |
+ content::RenderFrameHost* new_host) override; |
void WebContentsDestroyed() override; |
// Checks whether the install is initiated by a page in a verified site |
@@ -68,6 +72,8 @@ class WebstoreInlineInstaller : public WebstoreStandaloneInstaller, |
static bool IsRequestorURLInVerifiedSite(const GURL& requestor_url, |
const std::string& verified_site); |
+ // This corresponds to the frame that initiated the install request. |
+ content::RenderFrameHost* host_; |
GURL requestor_url_; |
DISALLOW_IMPLICIT_CONSTRUCTORS(WebstoreInlineInstaller); |