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

Side by Side Diff: chrome/browser/extensions/extension_process_manager.h

Issue 10119003: Pull shell window stuff out of ExtensionHost and put in ShellWindow (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: More stuff Created 8 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "content/public/common/view_type.h" 15 #include "content/public/common/view_type.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 18
19 class Browser; 19 class Browser;
20 class Extension; 20 class Extension;
21 class ExtensionHost; 21 class ExtensionHost;
22 class GURL; 22 class GURL;
23 class PlatformAppHost;
benwells 2012/04/19 09:03:55 Dang. This can go.
23 class Profile; 24 class Profile;
24 25
25 namespace content { 26 namespace content {
26 class RenderViewHost; 27 class RenderViewHost;
27 class SiteInstance; 28 class SiteInstance;
28 }; 29 };
29 30
30 // Manages dynamic state of running Chromium extensions. There is one instance 31 // Manages dynamic state of running Chromium extensions. There is one instance
31 // of this class per Profile. OTR Profiles have a separate instance that keeps 32 // of this class per Profile. OTR Profiles have a separate instance that keeps
32 // track of split-mode extensions only. 33 // track of split-mode extensions only.
(...skipping 15 matching lines...) Expand all
48 ExtensionHost* CreatePopupHost(const Extension* extension, 49 ExtensionHost* CreatePopupHost(const Extension* extension,
49 const GURL& url, 50 const GURL& url,
50 Browser* browser); 51 Browser* browser);
51 ExtensionHost* CreatePopupHost(const GURL& url, Browser* browser); 52 ExtensionHost* CreatePopupHost(const GURL& url, Browser* browser);
52 ExtensionHost* CreateDialogHost(const GURL& url, Browser* browser); 53 ExtensionHost* CreateDialogHost(const GURL& url, Browser* browser);
53 ExtensionHost* CreateInfobarHost(const Extension* extension, 54 ExtensionHost* CreateInfobarHost(const Extension* extension,
54 const GURL& url, 55 const GURL& url,
55 Browser* browser); 56 Browser* browser);
56 ExtensionHost* CreateInfobarHost(const GURL& url, 57 ExtensionHost* CreateInfobarHost(const GURL& url,
57 Browser* browser); 58 Browser* browser);
58 ExtensionHost* CreateShellHost(const Extension* extension, const GURL& url);
59 59
60 // Open the extension's options page. 60 // Open the extension's options page.
61 void OpenOptionsPage(const Extension* extension, Browser* browser); 61 void OpenOptionsPage(const Extension* extension, Browser* browser);
62 62
63 // Creates a new UI-less extension instance. Like CreateViewHost, but not 63 // Creates a new UI-less extension instance. Like CreateViewHost, but not
64 // displayed anywhere. 64 // displayed anywhere.
65 virtual void CreateBackgroundHost(const Extension* extension, 65 virtual void CreateBackgroundHost(const Extension* extension,
66 const GURL& url); 66 const GURL& url);
67 67
68 // Gets the ExtensionHost for the background page for an extension, or NULL if 68 // Gets the ExtensionHost for the background page for an extension, or NULL if
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // associated with a WebContents. This allows us to gather information that 174 // associated with a WebContents. This allows us to gather information that
175 // was not available when the host was first registered. 175 // was not available when the host was first registered.
176 void UpdateRegisteredRenderView(content::RenderViewHost* render_view_host); 176 void UpdateRegisteredRenderView(content::RenderViewHost* render_view_host);
177 177
178 BackgroundPageDataMap background_page_data_; 178 BackgroundPageDataMap background_page_data_;
179 179
180 DISALLOW_COPY_AND_ASSIGN(ExtensionProcessManager); 180 DISALLOW_COPY_AND_ASSIGN(ExtensionProcessManager);
181 }; 181 };
182 182
183 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ 183 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698