| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 interfaces is for managing the global services of the application. Each | 5 // This interfaces 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 18 matching lines...) Expand all Loading... |
| 29 class PrefService; | 29 class PrefService; |
| 30 class ProfileManager; | 30 class ProfileManager; |
| 31 class RenderProcessHost; | 31 class RenderProcessHost; |
| 32 class DebuggerWrapper; | 32 class DebuggerWrapper; |
| 33 class ResourceDispatcherHost; | 33 class ResourceDispatcherHost; |
| 34 class WebAppInstallerService; | 34 class WebAppInstallerService; |
| 35 class SuspendController; | 35 class SuspendController; |
| 36 | 36 |
| 37 namespace base { | 37 namespace base { |
| 38 class Thread; | 38 class Thread; |
| 39 class WaitableEvent; |
| 39 } | 40 } |
| 40 namespace sandbox { | 41 namespace sandbox { |
| 41 class BrokerServices; | 42 class BrokerServices; |
| 42 } | 43 } |
| 43 namespace printing { | 44 namespace printing { |
| 44 class PrintJobManager; | 45 class PrintJobManager; |
| 45 } | 46 } |
| 46 namespace views { | 47 namespace views { |
| 47 class AcceleratorHandler; | 48 class AcceleratorHandler; |
| 48 } | 49 } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // Returns the locale used by the application. | 122 // Returns the locale used by the application. |
| 122 virtual const std::wstring& GetApplicationLocale() = 0; | 123 virtual const std::wstring& GetApplicationLocale() = 0; |
| 123 | 124 |
| 124 virtual MemoryModel memory_model() = 0; | 125 virtual MemoryModel memory_model() = 0; |
| 125 | 126 |
| 126 #if defined(OS_WIN) | 127 #if defined(OS_WIN) |
| 127 DownloadRequestManager* download_request_manager() { | 128 DownloadRequestManager* download_request_manager() { |
| 128 ResourceDispatcherHost* rdh = resource_dispatcher_host(); | 129 ResourceDispatcherHost* rdh = resource_dispatcher_host(); |
| 129 return rdh ? rdh->download_request_manager() : NULL; | 130 return rdh ? rdh->download_request_manager() : NULL; |
| 130 } | 131 } |
| 132 #endif |
| 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 HANDLE shutdown_event() = 0; | 135 virtual base::WaitableEvent* shutdown_event() = 0; |
| 134 #endif | |
| 135 | 136 |
| 136 // Returns a reference to the user-data-dir based profiles vector. | 137 // Returns a reference to the user-data-dir based profiles vector. |
| 137 std::vector<std::wstring>& user_data_dir_profiles() { | 138 std::vector<std::wstring>& user_data_dir_profiles() { |
| 138 return user_data_dir_profiles_; | 139 return user_data_dir_profiles_; |
| 139 } | 140 } |
| 140 | 141 |
| 141 private: | 142 private: |
| 142 // User-data-dir based profiles. | 143 // User-data-dir based profiles. |
| 143 std::vector<std::wstring> user_data_dir_profiles_; | 144 std::vector<std::wstring> user_data_dir_profiles_; |
| 144 | 145 |
| 145 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcess); | 146 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcess); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 extern BrowserProcess* g_browser_process; | 149 extern BrowserProcess* g_browser_process; |
| 149 | 150 |
| 150 #endif // CHROME_BROWSER_BROWSER_PROCESS_H__ | 151 #endif // CHROME_BROWSER_BROWSER_PROCESS_H__ |
| 151 | 152 |
| OLD | NEW |