Chromium Code Reviews| 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 // 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_ |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 } | 59 } |
| 60 | 60 |
| 61 namespace printing { | 61 namespace printing { |
| 62 class BackgroundPrintingManager; | 62 class BackgroundPrintingManager; |
| 63 class PrintJobManager; | 63 class PrintJobManager; |
| 64 class PrintPreviewTabController; | 64 class PrintPreviewTabController; |
| 65 } | 65 } |
| 66 | 66 |
| 67 namespace policy { | 67 namespace policy { |
| 68 class BrowserPolicyConnector; | 68 class BrowserPolicyConnector; |
| 69 class ProfilePolicyConnector; | |
|
Mattias Nissler (ping if slow)
2011/05/26 10:20:20
Please also give it a better name. Maybe UserPolic
sfeuz
2011/05/31 07:32:31
Done.
| |
| 70 class ConfigurationPolicyProvider; | |
| 69 } | 71 } |
| 70 | 72 |
| 71 namespace ui { | 73 namespace ui { |
| 72 class Clipboard; | 74 class Clipboard; |
| 73 } | 75 } |
| 74 | 76 |
| 75 // NOT THREAD SAFE, call only from the main thread. | 77 // NOT THREAD SAFE, call only from the main thread. |
| 76 // These functions shouldn't return NULL unless otherwise noted. | 78 // These functions shouldn't return NULL unless otherwise noted. |
| 77 class BrowserProcess { | 79 class BrowserProcess { |
| 78 public: | 80 public: |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 | 149 |
| 148 #if defined(OS_CHROMEOS) | 150 #if defined(OS_CHROMEOS) |
| 149 // Returns thread for websocket to TCP proxy. | 151 // Returns thread for websocket to TCP proxy. |
| 150 // TODO(dilmah): remove this thread. Instead provide this functionality via | 152 // TODO(dilmah): remove this thread. Instead provide this functionality via |
| 151 // hooks into websocket bridge layer. | 153 // hooks into websocket bridge layer. |
| 152 virtual base::Thread* web_socket_proxy_thread() = 0; | 154 virtual base::Thread* web_socket_proxy_thread() = 0; |
| 153 #endif | 155 #endif |
| 154 | 156 |
| 155 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; | 157 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; |
| 156 | 158 |
| 159 virtual policy::ProfilePolicyConnector* user_policy_connector() = 0; | |
| 160 | |
| 161 virtual policy::ConfigurationPolicyProvider* | |
| 162 recommended_cloud_policy_provider() = 0; | |
| 163 | |
| 164 virtual policy::ConfigurationPolicyProvider* | |
| 165 managed_cloud_policy_provider() = 0; | |
|
Mattias Nissler (ping if slow)
2011/05/26 10:20:20
We should wrap all the cloud-policy related stuff
sfeuz
2011/05/31 07:32:31
I see.
On the other hand: the cloud policy class-s
Mattias Nissler (ping if slow)
2011/05/31 14:14:19
It's not another player, but just a wrapper. Move
| |
| 166 | |
| 157 virtual IconManager* icon_manager() = 0; | 167 virtual IconManager* icon_manager() = 0; |
| 158 | 168 |
| 159 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; | 169 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; |
| 160 | 170 |
| 161 virtual AutomationProviderList* InitAutomationProviderList() = 0; | 171 virtual AutomationProviderList* InitAutomationProviderList() = 0; |
| 162 | 172 |
| 163 virtual void InitDevToolsHttpProtocolHandler( | 173 virtual void InitDevToolsHttpProtocolHandler( |
| 164 const std::string& ip, | 174 const std::string& ip, |
| 165 int port, | 175 int port, |
| 166 const std::string& frontend_url) = 0; | 176 const std::string& frontend_url) = 0; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 242 | 252 |
| 243 // Used for testing plugin data removal at shutdown. | 253 // Used for testing plugin data removal at shutdown. |
| 244 std::string plugin_data_remover_mime_type_; | 254 std::string plugin_data_remover_mime_type_; |
| 245 | 255 |
| 246 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 256 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 247 }; | 257 }; |
| 248 | 258 |
| 249 extern BrowserProcess* g_browser_process; | 259 extern BrowserProcess* g_browser_process; |
| 250 | 260 |
| 251 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 261 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |