OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This interface is for managing the global services of the application. Each | 5 // This interface is for managing the global services of the application. Each |
6 // service is lazily created when requested the first time. The service getters | 6 // service is lazily created when requested the first time. The service getters |
7 // will return NULL if the service is not available, so callers must check for | 7 // will return NULL if the service is not available, so callers must check for |
8 // this condition. | 8 // this condition. |
9 | 9 |
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ |
11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "ipc/ipc_message.h" | 17 #include "ipc/ipc_message.h" |
18 | 18 |
19 class AutomationProviderList; | 19 class AutomationProviderList; |
20 class Clipboard; | 20 class Clipboard; |
21 class DevToolsManager; | 21 class DevToolsManager; |
22 class DownloadRequestManager; | 22 class DownloadRequestManager; |
23 class GoogleURLTracker; | 23 class GoogleURLTracker; |
| 24 class IntranetRedirectDetector; |
24 class IconManager; | 25 class IconManager; |
25 class MetricsService; | 26 class MetricsService; |
26 class NotificationUIManager; | 27 class NotificationUIManager; |
27 class PrefService; | 28 class PrefService; |
28 class ProfileManager; | 29 class ProfileManager; |
29 class DebuggerWrapper; | 30 class DebuggerWrapper; |
30 class ResourceDispatcherHost; | 31 class ResourceDispatcherHost; |
31 class SuspendController; | 32 class SuspendController; |
32 class ThumbnailGenerator; | 33 class ThumbnailGenerator; |
33 class WebAppInstallerService; | 34 class WebAppInstallerService; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual void InitDebuggerWrapper(int port) = 0; | 116 virtual void InitDebuggerWrapper(int port) = 0; |
116 | 117 |
117 virtual unsigned int AddRefModule() = 0; | 118 virtual unsigned int AddRefModule() = 0; |
118 virtual unsigned int ReleaseModule() = 0; | 119 virtual unsigned int ReleaseModule() = 0; |
119 | 120 |
120 virtual bool IsShuttingDown() = 0; | 121 virtual bool IsShuttingDown() = 0; |
121 | 122 |
122 virtual printing::PrintJobManager* print_job_manager() = 0; | 123 virtual printing::PrintJobManager* print_job_manager() = 0; |
123 | 124 |
124 virtual GoogleURLTracker* google_url_tracker() = 0; | 125 virtual GoogleURLTracker* google_url_tracker() = 0; |
| 126 virtual IntranetRedirectDetector* intranet_redirect_detector() = 0; |
125 | 127 |
126 // Returns the locale used by the application. | 128 // Returns the locale used by the application. |
127 virtual const std::string& GetApplicationLocale() = 0; | 129 virtual const std::string& GetApplicationLocale() = 0; |
128 virtual void set_application_locale(const std::string& locale) = 0; | 130 virtual void set_application_locale(const std::string& locale) = 0; |
129 | 131 |
130 DownloadRequestManager* download_request_manager(); | 132 DownloadRequestManager* download_request_manager(); |
131 | 133 |
132 // Returns an event that is signaled when the browser shutdown. | 134 // Returns an event that is signaled when the browser shutdown. |
133 virtual base::WaitableEvent* shutdown_event() = 0; | 135 virtual base::WaitableEvent* shutdown_event() = 0; |
134 | 136 |
(...skipping 21 matching lines...) Expand all Loading... |
156 private: | 158 private: |
157 // User-data-dir based profiles. | 159 // User-data-dir based profiles. |
158 std::vector<std::wstring> user_data_dir_profiles_; | 160 std::vector<std::wstring> user_data_dir_profiles_; |
159 | 161 |
160 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 162 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
161 }; | 163 }; |
162 | 164 |
163 extern BrowserProcess* g_browser_process; | 165 extern BrowserProcess* g_browser_process; |
164 | 166 |
165 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 167 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |