| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #endif // defined(OS_CHROMEOS) | 48 #endif // defined(OS_CHROMEOS) |
| 49 | 49 |
| 50 namespace chrome_variations { | 50 namespace chrome_variations { |
| 51 class VariationsService; | 51 class VariationsService; |
| 52 } | 52 } |
| 53 | 53 |
| 54 namespace extensions { | 54 namespace extensions { |
| 55 class EventRouterForwarder; | 55 class EventRouterForwarder; |
| 56 } | 56 } |
| 57 | 57 |
| 58 #if defined(ENABLE_MESSAGE_CENTER) |
| 59 namespace message_center { |
| 60 class MessageCenter; |
| 61 } |
| 62 #endif |
| 63 |
| 58 namespace net { | 64 namespace net { |
| 59 class URLRequestContextGetter; | 65 class URLRequestContextGetter; |
| 60 } | 66 } |
| 61 | 67 |
| 62 namespace policy { | 68 namespace policy { |
| 63 class BrowserPolicyConnector; | 69 class BrowserPolicyConnector; |
| 64 class PolicyService; | 70 class PolicyService; |
| 65 } | 71 } |
| 66 | 72 |
| 67 namespace prerender { | 73 namespace prerender { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Returns the out-of-memory priority manager. | 111 // Returns the out-of-memory priority manager. |
| 106 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; | 112 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; |
| 107 #endif // defined(OS_CHROMEOS) | 113 #endif // defined(OS_CHROMEOS) |
| 108 | 114 |
| 109 virtual extensions::EventRouterForwarder* | 115 virtual extensions::EventRouterForwarder* |
| 110 extension_event_router_forwarder() = 0; | 116 extension_event_router_forwarder() = 0; |
| 111 | 117 |
| 112 // Returns the manager for desktop notifications. | 118 // Returns the manager for desktop notifications. |
| 113 virtual NotificationUIManager* notification_ui_manager() = 0; | 119 virtual NotificationUIManager* notification_ui_manager() = 0; |
| 114 | 120 |
| 121 #if defined(ENABLE_MESSAGE_CENTER) |
| 122 // MessageCenter is a global list of currently displayed notifications. |
| 123 virtual message_center::MessageCenter* message_center() = 0; |
| 124 #endif |
| 125 |
| 115 // Returns the state object for the thread that we perform I/O | 126 // Returns the state object for the thread that we perform I/O |
| 116 // coordination on (network requests, communication with renderers, | 127 // coordination on (network requests, communication with renderers, |
| 117 // etc. | 128 // etc. |
| 118 // | 129 // |
| 119 // Can be NULL close to startup and shutdown. | 130 // Can be NULL close to startup and shutdown. |
| 120 // | 131 // |
| 121 // NOTE: If you want to post a task to the IO thread, use | 132 // NOTE: If you want to post a task to the IO thread, use |
| 122 // BrowserThread::PostTask (or other variants). | 133 // BrowserThread::PostTask (or other variants). |
| 123 virtual IOThread* io_thread() = 0; | 134 virtual IOThread* io_thread() = 0; |
| 124 | 135 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 virtual void PlatformSpecificCommandLineProcessing( | 219 virtual void PlatformSpecificCommandLineProcessing( |
| 209 const CommandLine& command_line) = 0; | 220 const CommandLine& command_line) = 0; |
| 210 | 221 |
| 211 private: | 222 private: |
| 212 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 223 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
| 213 }; | 224 }; |
| 214 | 225 |
| 215 extern BrowserProcess* g_browser_process; | 226 extern BrowserProcess* g_browser_process; |
| 216 | 227 |
| 217 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 228 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
| OLD | NEW |