OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // When each service is created, we set a flag indicating this. At this point, | 5 // When each service is created, we set a flag indicating this. At this point, |
6 // the service initialization could fail or succeed. This allows us to remember | 6 // the service initialization could fail or succeed. This allows us to remember |
7 // if we tried to create a service, and not try creating it over and over if | 7 // if we tried to create a service, and not try creating it over and over if |
8 // the creation failed. | 8 // the creation failed. |
9 | 9 |
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
12 #pragma once | 12 #pragma once |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
| 18 #include "base/scoped_ptr.h" |
18 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
19 #include "base/timer.h" | 20 #include "base/timer.h" |
20 #include "base/scoped_ptr.h" | |
21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
22 #include "chrome/browser/download/download_status_updater.h" | 22 #include "chrome/browser/download/download_status_updater.h" |
23 #include "chrome/browser/prefs/pref_change_registrar.h" | 23 #include "chrome/browser/prefs/pref_change_registrar.h" |
24 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 24 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
25 #include "chrome/common/notification_observer.h" | 25 #include "chrome/common/notification_observer.h" |
26 #include "chrome/common/notification_registrar.h" | 26 #include "chrome/common/notification_registrar.h" |
27 #include "ipc/ipc_message.h" | 27 #include "ipc/ipc_message.h" |
28 | 28 |
29 class ChromeNetLog; | 29 class ChromeNetLog; |
30 class CommandLine; | 30 class CommandLine; |
(...skipping 24 matching lines...) Expand all Loading... |
55 virtual base::Thread* cache_thread(); | 55 virtual base::Thread* cache_thread(); |
56 #if defined(USE_X11) | 56 #if defined(USE_X11) |
57 virtual base::Thread* background_x11_thread(); | 57 virtual base::Thread* background_x11_thread(); |
58 #endif | 58 #endif |
59 virtual ProfileManager* profile_manager(); | 59 virtual ProfileManager* profile_manager(); |
60 virtual PrefService* local_state(); | 60 virtual PrefService* local_state(); |
61 virtual DevToolsManager* devtools_manager(); | 61 virtual DevToolsManager* devtools_manager(); |
62 virtual SidebarManager* sidebar_manager(); | 62 virtual SidebarManager* sidebar_manager(); |
63 virtual ui::Clipboard* clipboard(); | 63 virtual ui::Clipboard* clipboard(); |
64 virtual NotificationUIManager* notification_ui_manager(); | 64 virtual NotificationUIManager* notification_ui_manager(); |
65 virtual policy::ConfigurationPolicyProviderKeeper* | 65 virtual policy::BrowserPolicyConnector* browser_policy_connector(); |
66 configuration_policy_provider_keeper(); | |
67 virtual IconManager* icon_manager(); | 66 virtual IconManager* icon_manager(); |
68 virtual ThumbnailGenerator* GetThumbnailGenerator(); | 67 virtual ThumbnailGenerator* GetThumbnailGenerator(); |
69 virtual AutomationProviderList* InitAutomationProviderList(); | 68 virtual AutomationProviderList* InitAutomationProviderList(); |
70 virtual void InitDevToolsHttpProtocolHandler( | 69 virtual void InitDevToolsHttpProtocolHandler( |
71 const std::string& ip, | 70 const std::string& ip, |
72 int port, | 71 int port, |
73 const std::string& frontend_url); | 72 const std::string& frontend_url); |
74 virtual void InitDevToolsLegacyProtocolHandler(int port); | 73 virtual void InitDevToolsLegacyProtocolHandler(int port); |
75 virtual unsigned int AddRefModule(); | 74 virtual unsigned int AddRefModule(); |
76 virtual unsigned int ReleaseModule(); | 75 virtual unsigned int ReleaseModule(); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 scoped_refptr<DevToolsHttpProtocolHandler> devtools_http_handler_; | 180 scoped_refptr<DevToolsHttpProtocolHandler> devtools_http_handler_; |
182 | 181 |
183 scoped_refptr<DevToolsProtocolHandler> devtools_legacy_handler_; | 182 scoped_refptr<DevToolsProtocolHandler> devtools_legacy_handler_; |
184 | 183 |
185 bool created_devtools_manager_; | 184 bool created_devtools_manager_; |
186 scoped_refptr<DevToolsManager> devtools_manager_; | 185 scoped_refptr<DevToolsManager> devtools_manager_; |
187 | 186 |
188 bool created_sidebar_manager_; | 187 bool created_sidebar_manager_; |
189 scoped_refptr<SidebarManager> sidebar_manager_; | 188 scoped_refptr<SidebarManager> sidebar_manager_; |
190 | 189 |
191 bool created_configuration_policy_provider_keeper_; | 190 bool created_browser_policy_connector_; |
192 scoped_ptr<policy::ConfigurationPolicyProviderKeeper> | 191 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; |
193 configuration_policy_provider_keeper_; | |
194 | 192 |
195 scoped_refptr<printing::PrintPreviewTabController> | 193 scoped_refptr<printing::PrintPreviewTabController> |
196 print_preview_tab_controller_; | 194 print_preview_tab_controller_; |
197 | 195 |
198 scoped_ptr<ui::Clipboard> clipboard_; | 196 scoped_ptr<ui::Clipboard> clipboard_; |
199 | 197 |
200 // Manager for desktop notification UI. | 198 // Manager for desktop notification UI. |
201 bool created_notification_ui_manager_; | 199 bool created_notification_ui_manager_; |
202 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 200 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
203 | 201 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 // restarted, and if that's the case, restarts the browser. | 258 // restarted, and if that's the case, restarts the browser. |
261 void OnAutoupdateTimer(); | 259 void OnAutoupdateTimer(); |
262 bool CanAutorestartForUpdate() const; | 260 bool CanAutorestartForUpdate() const; |
263 void RestartPersistentInstance(); | 261 void RestartPersistentInstance(); |
264 #endif // defined(OS_WIN) || defined(OS_LINUX) | 262 #endif // defined(OS_WIN) || defined(OS_LINUX) |
265 | 263 |
266 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 264 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
267 }; | 265 }; |
268 | 266 |
269 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 267 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |