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 17 matching lines...) Expand all Loading... | |
28 class IOThread; | 28 class IOThread; |
29 class MetricsService; | 29 class MetricsService; |
30 class NotificationUIManager; | 30 class NotificationUIManager; |
31 class PrefService; | 31 class PrefService; |
32 class Profile; | 32 class Profile; |
33 class ProfileManager; | 33 class ProfileManager; |
34 class SafeBrowsingService; | 34 class SafeBrowsingService; |
35 class StatusTray; | 35 class StatusTray; |
36 class TabCloseableStateWatcher; | 36 class TabCloseableStateWatcher; |
37 class ThumbnailGenerator; | 37 class ThumbnailGenerator; |
38 class VariationsService; | |
38 class WatchDogThread; | 39 class WatchDogThread; |
39 | 40 |
40 #if defined(OS_CHROMEOS) | 41 #if defined(OS_CHROMEOS) |
41 namespace chromeos { | 42 namespace chromeos { |
42 class OomPriorityManager; | 43 class OomPriorityManager; |
43 } | 44 } |
44 #endif // defined(OS_CHROMEOS) | 45 #endif // defined(OS_CHROMEOS) |
45 | 46 |
46 namespace net { | 47 namespace net { |
47 class URLRequestContextGetter; | 48 class URLRequestContextGetter; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 // to normal shutdown and saves any state that must be saved before we are | 86 // to normal shutdown and saves any state that must be saved before we are |
86 // continue shutdown. | 87 // continue shutdown. |
87 virtual void EndSession() = 0; | 88 virtual void EndSession() = 0; |
88 | 89 |
89 // Services: any of these getters may return NULL | 90 // Services: any of these getters may return NULL |
90 virtual MetricsService* metrics_service() = 0; | 91 virtual MetricsService* metrics_service() = 0; |
91 virtual ProfileManager* profile_manager() = 0; | 92 virtual ProfileManager* profile_manager() = 0; |
92 virtual PrefService* local_state() = 0; | 93 virtual PrefService* local_state() = 0; |
93 virtual ui::Clipboard* clipboard() = 0; | 94 virtual ui::Clipboard* clipboard() = 0; |
94 virtual net::URLRequestContextGetter* system_request_context() = 0; | 95 virtual net::URLRequestContextGetter* system_request_context() = 0; |
96 virtual VariationsService* variations_service() = 0; | |
Ilya Sherman
2012/05/15 22:11:17
I still think this might be more appropriate as a
SteveT
2012/05/16 14:33:49
Does the functionality in VariationsService have m
jwd
2012/05/16 14:47:31
FWIW putting it here was a recommendation from dom
Ilya Sherman
2012/05/16 17:57:23
Fair enough, I'm ok with keeping it here if that s
Ilya Sherman
2012/05/16 17:57:23
Agreed, the MetricsService does not use the Variat
| |
95 | 97 |
96 #if defined(OS_CHROMEOS) | 98 #if defined(OS_CHROMEOS) |
97 // Returns the out-of-memory priority manager. | 99 // Returns the out-of-memory priority manager. |
98 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; | 100 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; |
99 #endif // defined(OS_CHROMEOS) | 101 #endif // defined(OS_CHROMEOS) |
100 | 102 |
101 virtual ExtensionEventRouterForwarder* | 103 virtual ExtensionEventRouterForwarder* |
102 extension_event_router_forwarder() = 0; | 104 extension_event_router_forwarder() = 0; |
103 | 105 |
104 // Returns the manager for desktop notifications. | 106 // Returns the manager for desktop notifications. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
198 | 200 |
199 virtual CRLSetFetcher* crl_set_fetcher() = 0; | 201 virtual CRLSetFetcher* crl_set_fetcher() = 0; |
200 | 202 |
201 private: | 203 private: |
202 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 204 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
203 }; | 205 }; |
204 | 206 |
205 extern BrowserProcess* g_browser_process; | 207 extern BrowserProcess* g_browser_process; |
206 | 208 |
207 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 209 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |