| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class Thread; | 44 class Thread; |
| 45 class WaitableEvent; | 45 class WaitableEvent; |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace printing { | 48 namespace printing { |
| 49 class PrintJobManager; | 49 class PrintJobManager; |
| 50 class PrintPreviewTabController; | 50 class PrintPreviewTabController; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace policy { | 53 namespace policy { |
| 54 class ConfigurationPolicyProviderKeeper; | 54 class BrowserPolicyConnector; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace ui { | 57 namespace ui { |
| 58 class Clipboard; | 58 class Clipboard; |
| 59 } | 59 } |
| 60 | 60 |
| 61 // NOT THREAD SAFE, call only from the main thread. | 61 // NOT THREAD SAFE, call only from the main thread. |
| 62 // These functions shouldn't return NULL unless otherwise noted. | 62 // These functions shouldn't return NULL unless otherwise noted. |
| 63 class BrowserProcess { | 63 class BrowserProcess { |
| 64 public: | 64 public: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 #if defined(USE_X11) | 109 #if defined(USE_X11) |
| 110 // Returns the thread that is used to process UI requests in cases where | 110 // Returns the thread that is used to process UI requests in cases where |
| 111 // we can't route the request to the UI thread. Note that this thread | 111 // we can't route the request to the UI thread. Note that this thread |
| 112 // should only be used by the IO thread and this method is only safe to call | 112 // should only be used by the IO thread and this method is only safe to call |
| 113 // from the UI thread so, if you've ended up here, something has gone wrong. | 113 // from the UI thread so, if you've ended up here, something has gone wrong. |
| 114 // This method is only included for uniformity. | 114 // This method is only included for uniformity. |
| 115 virtual base::Thread* background_x11_thread() = 0; | 115 virtual base::Thread* background_x11_thread() = 0; |
| 116 #endif | 116 #endif |
| 117 | 117 |
| 118 virtual policy::ConfigurationPolicyProviderKeeper* | 118 virtual policy::BrowserPolicyConnector* browser_policy_connector() = 0; |
| 119 configuration_policy_provider_keeper() = 0; | |
| 120 | 119 |
| 121 virtual IconManager* icon_manager() = 0; | 120 virtual IconManager* icon_manager() = 0; |
| 122 | 121 |
| 123 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; | 122 virtual ThumbnailGenerator* GetThumbnailGenerator() = 0; |
| 124 | 123 |
| 125 virtual AutomationProviderList* InitAutomationProviderList() = 0; | 124 virtual AutomationProviderList* InitAutomationProviderList() = 0; |
| 126 | 125 |
| 127 virtual void InitDevToolsHttpProtocolHandler( | 126 virtual void InitDevToolsHttpProtocolHandler( |
| 128 const std::string& ip, | 127 const std::string& ip, |
| 129 int port, | 128 int port, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 208 |
| 210 // Used for testing plugin data removal at shutdown. | 209 // Used for testing plugin data removal at shutdown. |
| 211 std::string plugin_data_remover_mime_type_; | 210 std::string plugin_data_remover_mime_type_; |
| 212 | 211 |
| 213 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 212 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 214 }; | 213 }; |
| 215 | 214 |
| 216 extern BrowserProcess* g_browser_process; | 215 extern BrowserProcess* g_browser_process; |
| 217 | 216 |
| 218 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 217 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |