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