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_ |
(...skipping 10 matching lines...) Expand all Loading... |
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; |
31 class DebuggerWrapper; | 31 class DevToolsHttpProtocolHandler; |
| 32 class DevToolsProtocolHandler; |
32 class FilePath; | 33 class FilePath; |
33 class NotificationService; | 34 class NotificationService; |
34 class PluginDataRemover; | 35 class PluginDataRemover; |
35 class TabCloseableStateWatcher; | 36 class TabCloseableStateWatcher; |
36 | 37 |
37 // Real implementation of BrowserProcess that creates and returns the services. | 38 // Real implementation of BrowserProcess that creates and returns the services. |
38 class BrowserProcessImpl : public BrowserProcess, | 39 class BrowserProcessImpl : public BrowserProcess, |
39 public base::NonThreadSafe, | 40 public base::NonThreadSafe, |
40 public NotificationObserver { | 41 public NotificationObserver { |
41 public: | 42 public: |
(...skipping 17 matching lines...) Expand all Loading... |
59 virtual PrefService* local_state(); | 60 virtual PrefService* local_state(); |
60 virtual DevToolsManager* devtools_manager(); | 61 virtual DevToolsManager* devtools_manager(); |
61 virtual SidebarManager* sidebar_manager(); | 62 virtual SidebarManager* sidebar_manager(); |
62 virtual ui::Clipboard* clipboard(); | 63 virtual ui::Clipboard* clipboard(); |
63 virtual NotificationUIManager* notification_ui_manager(); | 64 virtual NotificationUIManager* notification_ui_manager(); |
64 virtual policy::ConfigurationPolicyProviderKeeper* | 65 virtual policy::ConfigurationPolicyProviderKeeper* |
65 configuration_policy_provider_keeper(); | 66 configuration_policy_provider_keeper(); |
66 virtual IconManager* icon_manager(); | 67 virtual IconManager* icon_manager(); |
67 virtual ThumbnailGenerator* GetThumbnailGenerator(); | 68 virtual ThumbnailGenerator* GetThumbnailGenerator(); |
68 virtual AutomationProviderList* InitAutomationProviderList(); | 69 virtual AutomationProviderList* InitAutomationProviderList(); |
69 virtual void InitDebuggerWrapper(int port, bool useHttp); | 70 virtual void InitDevToolsHttpProtocolHandler( |
| 71 int port, |
| 72 const std::string& frontend_url); |
| 73 virtual void InitDevToolsLegacyProtocolHandler(int port); |
70 virtual unsigned int AddRefModule(); | 74 virtual unsigned int AddRefModule(); |
71 virtual unsigned int ReleaseModule(); | 75 virtual unsigned int ReleaseModule(); |
72 virtual bool IsShuttingDown(); | 76 virtual bool IsShuttingDown(); |
73 virtual printing::PrintJobManager* print_job_manager(); | 77 virtual printing::PrintJobManager* print_job_manager(); |
74 virtual printing::PrintPreviewTabController* print_preview_tab_controller(); | 78 virtual printing::PrintPreviewTabController* print_preview_tab_controller(); |
75 virtual GoogleURLTracker* google_url_tracker(); | 79 virtual GoogleURLTracker* google_url_tracker(); |
76 virtual IntranetRedirectDetector* intranet_redirect_detector(); | 80 virtual IntranetRedirectDetector* intranet_redirect_detector(); |
77 virtual const std::string& GetApplicationLocale(); | 81 virtual const std::string& GetApplicationLocale(); |
78 virtual void SetApplicationLocale(const std::string& locale); | 82 virtual void SetApplicationLocale(const std::string& locale); |
79 virtual DownloadStatusUpdater* download_status_updater(); | 83 virtual DownloadStatusUpdater* download_status_updater(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void CreateFileThread(); | 118 void CreateFileThread(); |
115 void CreateDBThread(); | 119 void CreateDBThread(); |
116 void CreateProcessLauncherThread(); | 120 void CreateProcessLauncherThread(); |
117 void CreateCacheThread(); | 121 void CreateCacheThread(); |
118 void CreateTemplateURLModel(); | 122 void CreateTemplateURLModel(); |
119 void CreateProfileManager(); | 123 void CreateProfileManager(); |
120 void CreateWebDataService(); | 124 void CreateWebDataService(); |
121 void CreateLocalState(); | 125 void CreateLocalState(); |
122 void CreateViewedPageTracker(); | 126 void CreateViewedPageTracker(); |
123 void CreateIconManager(); | 127 void CreateIconManager(); |
124 void CreateDebuggerWrapper(int port, bool useHttp); | |
125 void CreateDevToolsManager(); | 128 void CreateDevToolsManager(); |
126 void CreateSidebarManager(); | 129 void CreateSidebarManager(); |
127 void CreateGoogleURLTracker(); | 130 void CreateGoogleURLTracker(); |
128 void CreateIntranetRedirectDetector(); | 131 void CreateIntranetRedirectDetector(); |
129 void CreateNotificationUIManager(); | 132 void CreateNotificationUIManager(); |
130 void CreateStatusTrayManager(); | 133 void CreateStatusTrayManager(); |
131 void CreateTabCloseableStateWatcher(); | 134 void CreateTabCloseableStateWatcher(); |
132 void CreatePrintPreviewTabController(); | 135 void CreatePrintPreviewTabController(); |
133 void CreateSafeBrowsingDetectionService(); | 136 void CreateSafeBrowsingDetectionService(); |
134 | 137 |
(...skipping 30 matching lines...) Expand all Loading... |
165 | 168 |
166 bool created_profile_manager_; | 169 bool created_profile_manager_; |
167 scoped_ptr<ProfileManager> profile_manager_; | 170 scoped_ptr<ProfileManager> profile_manager_; |
168 | 171 |
169 bool created_local_state_; | 172 bool created_local_state_; |
170 scoped_ptr<PrefService> local_state_; | 173 scoped_ptr<PrefService> local_state_; |
171 | 174 |
172 bool created_icon_manager_; | 175 bool created_icon_manager_; |
173 scoped_ptr<IconManager> icon_manager_; | 176 scoped_ptr<IconManager> icon_manager_; |
174 | 177 |
175 bool created_debugger_wrapper_; | 178 scoped_refptr<DevToolsHttpProtocolHandler> devtools_http_handler_; |
176 scoped_refptr<DebuggerWrapper> debugger_wrapper_; | 179 |
| 180 scoped_refptr<DevToolsProtocolHandler> devtools_legacy_handler_; |
177 | 181 |
178 bool created_devtools_manager_; | 182 bool created_devtools_manager_; |
179 scoped_refptr<DevToolsManager> devtools_manager_; | 183 scoped_refptr<DevToolsManager> devtools_manager_; |
180 | 184 |
181 bool created_sidebar_manager_; | 185 bool created_sidebar_manager_; |
182 scoped_refptr<SidebarManager> sidebar_manager_; | 186 scoped_refptr<SidebarManager> sidebar_manager_; |
183 | 187 |
184 bool created_configuration_policy_provider_keeper_; | 188 bool created_configuration_policy_provider_keeper_; |
185 scoped_ptr<policy::ConfigurationPolicyProviderKeeper> | 189 scoped_ptr<policy::ConfigurationPolicyProviderKeeper> |
186 configuration_policy_provider_keeper_; | 190 configuration_policy_provider_keeper_; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // restarted, and if that's the case, restarts the browser. | 257 // restarted, and if that's the case, restarts the browser. |
254 void OnAutoupdateTimer(); | 258 void OnAutoupdateTimer(); |
255 bool CanAutorestartForUpdate() const; | 259 bool CanAutorestartForUpdate() const; |
256 void RestartPersistentInstance(); | 260 void RestartPersistentInstance(); |
257 #endif // defined(OS_WIN) || defined(OS_LINUX) | 261 #endif // defined(OS_WIN) || defined(OS_LINUX) |
258 | 262 |
259 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 263 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
260 }; | 264 }; |
261 | 265 |
262 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 266 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |