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

Side by Side 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: cleanup 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_FACTORY_H_
7
8 #include "base/basictypes.h"
9
10 class Browser;
11 class GURL;
12 class Profile;
13
14 namespace extensions {
15
16 class ExtensionHost;
17
18 // A utility class to make ExtensionHosts, specifically those with browser-
19 // specific needs.
20 class ExtensionHostFactory {
21 public:
22 // Creates a new ExtensionHost with its associated view, grouping it in the
23 // appropriate SiteInstance (and therefore process) based on the URL and
24 // profile.
25 static ExtensionHost* CreatePopupHost(const GURL& url, Browser* browser);
26 static ExtensionHost* CreateInfobarHost(const GURL& url, Browser* browser);
27
28 // Some dialogs may not be associated with a particular browser window and
29 // hence only require a |profile|.
30 static ExtensionHost* CreateDialogHost(const GURL& url, Profile* profile);
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(ExtensionHostFactory);
34 };
35
36 } // namespace extensions
37
38 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698