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

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

Issue 57923009: Move ExtensionProcessManager to src/extensions, part 3 - remove Browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix incognito_info include Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_host_factory.h
diff --git a/chrome/browser/extensions/extension_host_factory.h b/chrome/browser/extensions/extension_host_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..b9104903791b65d955be816f40c5f32db2b111c6
--- /dev/null
+++ b/chrome/browser/extensions/extension_host_factory.h
@@ -0,0 +1,38 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_FACTORY_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_FACTORY_H_
+
+#include "base/basictypes.h"
+
+class Browser;
+class GURL;
+class Profile;
+
+namespace extensions {
+
+class ExtensionHost;
+
+// A utility class to make ExtensionHosts, specifically those with browser-
+// specific needs.
+class ExtensionHostFactory {
+ public:
+ // Creates a new ExtensionHost with its associated view, grouping it in the
+ // appropriate SiteInstance (and therefore process) based on the URL and
+ // profile.
+ static ExtensionHost* CreatePopupHost(const GURL& url, Browser* browser);
+ static ExtensionHost* CreateInfobarHost(const GURL& url, Browser* browser);
+
+ // Some dialogs may not be associated with a particular browser window and
+ // hence only require a |profile|.
+ static ExtensionHost* CreateDialogHost(const GURL& url, Profile* profile);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ExtensionHostFactory);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_FACTORY_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698