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

Unified Diff: chrome/browser/extensions/extension_host.h

Issue 164458: Land http://codereview.chromium.org/159067: (Closed)
Patch Set: undo docs Created 11 years, 4 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: chrome/browser/extensions/extension_host.h
diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h
index 1a9ffede47caaa27f95172470291e87b04a836f0..1d42eadf6bfda643f6362494e25271c3bddde5ab 100644
--- a/chrome/browser/extensions/extension_host.h
+++ b/chrome/browser/extensions/extension_host.h
@@ -40,7 +40,7 @@ class ExtensionHost : public RenderViewHostDelegate,
static void EnableDOMAutomation() { enable_dom_automation_ = true; }
ExtensionHost(Extension* extension, SiteInstance* site_instance,
- const GURL& url);
+ const GURL& url, ViewType::Type host_type);
~ExtensionHost();
#if defined(TOOLKIT_VIEWS)
@@ -84,6 +84,8 @@ class ExtensionHost : public RenderViewHostDelegate,
virtual RenderViewHostDelegate::View* GetViewDelegate();
virtual const GURL& GetURL() const { return url_; }
virtual void RenderViewCreated(RenderViewHost* render_view_host);
+ virtual ViewType::Type GetRenderViewType() const;
+ virtual int GetBrowserWindowID() const;
virtual void RenderViewGone(RenderViewHost* render_view_host);
virtual void DidNavigate(RenderViewHost* render_view_host,
const ViewHostMsg_FrameNavigate_Params& params);
@@ -177,6 +179,10 @@ class ExtensionHost : public RenderViewHostDelegate,
scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
+ // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here,
+ // others are not hostd by ExtensionHost.
+ ViewType::Type extension_host_type_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
};
« no previous file with comments | « chrome/browser/extensions/extension_browsertests_misc.cc ('k') | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698