| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace chrome_variations { | 49 namespace chrome_variations { |
| 50 class VariationsService; | 50 class VariationsService; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace extensions { | 53 namespace extensions { |
| 54 class EventRouterForwarder; | 54 class EventRouterForwarder; |
| 55 } | 55 } |
| 56 | 56 |
| 57 #if defined(ENABLE_MESSAGE_CENTER) | |
| 58 namespace message_center { | 57 namespace message_center { |
| 59 class MessageCenter; | 58 class MessageCenter; |
| 60 } | 59 } |
| 61 #endif | |
| 62 | 60 |
| 63 namespace net { | 61 namespace net { |
| 64 class URLRequestContextGetter; | 62 class URLRequestContextGetter; |
| 65 } | 63 } |
| 66 | 64 |
| 67 namespace policy { | 65 namespace policy { |
| 68 class BrowserPolicyConnector; | 66 class BrowserPolicyConnector; |
| 69 class PolicyService; | 67 class PolicyService; |
| 70 } | 68 } |
| 71 | 69 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 virtual chrome_variations::VariationsService* variations_service() = 0; | 105 virtual chrome_variations::VariationsService* variations_service() = 0; |
| 108 | 106 |
| 109 virtual BrowserProcessPlatformPart* platform_part() = 0; | 107 virtual BrowserProcessPlatformPart* platform_part() = 0; |
| 110 | 108 |
| 111 virtual extensions::EventRouterForwarder* | 109 virtual extensions::EventRouterForwarder* |
| 112 extension_event_router_forwarder() = 0; | 110 extension_event_router_forwarder() = 0; |
| 113 | 111 |
| 114 // Returns the manager for desktop notifications. | 112 // Returns the manager for desktop notifications. |
| 115 virtual NotificationUIManager* notification_ui_manager() = 0; | 113 virtual NotificationUIManager* notification_ui_manager() = 0; |
| 116 | 114 |
| 117 #if defined(ENABLE_MESSAGE_CENTER) | |
| 118 // MessageCenter is a global list of currently displayed notifications. | 115 // MessageCenter is a global list of currently displayed notifications. |
| 119 virtual message_center::MessageCenter* message_center() = 0; | 116 virtual message_center::MessageCenter* message_center() = 0; |
| 120 #endif | |
| 121 | 117 |
| 122 // Returns the state object for the thread that we perform I/O | 118 // Returns the state object for the thread that we perform I/O |
| 123 // coordination on (network requests, communication with renderers, | 119 // coordination on (network requests, communication with renderers, |
| 124 // etc. | 120 // etc. |
| 125 // | 121 // |
| 126 // Can be NULL close to startup and shutdown. | 122 // Can be NULL close to startup and shutdown. |
| 127 // | 123 // |
| 128 // NOTE: If you want to post a task to the IO thread, use | 124 // NOTE: If you want to post a task to the IO thread, use |
| 129 // BrowserThread::PostTask (or other variants). | 125 // BrowserThread::PostTask (or other variants). |
| 130 virtual IOThread* io_thread() = 0; | 126 virtual IOThread* io_thread() = 0; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 virtual void OnMetroViewerProcessTerminated() = 0; | 223 virtual void OnMetroViewerProcessTerminated() = 0; |
| 228 #endif | 224 #endif |
| 229 | 225 |
| 230 private: | 226 private: |
| 231 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 227 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 232 }; | 228 }; |
| 233 | 229 |
| 234 extern BrowserProcess* g_browser_process; | 230 extern BrowserProcess* g_browser_process; |
| 235 | 231 |
| 236 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 232 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |