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