Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: chrome/browser/browser_process.h

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch to desired interfaces. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 11 matching lines...) Expand all
22 class CRLSetFetcher; 22 class CRLSetFetcher;
23 class ComponentUpdateService; 23 class ComponentUpdateService;
24 class DownloadRequestLimiter; 24 class DownloadRequestLimiter;
25 class DownloadStatusUpdater; 25 class DownloadStatusUpdater;
26 class GLStringManager; 26 class GLStringManager;
27 class IconManager; 27 class IconManager;
28 class IntranetRedirectDetector; 28 class IntranetRedirectDetector;
29 class IOThread; 29 class IOThread;
30 class MetricsService; 30 class MetricsService;
31 class NotificationUIManager; 31 class NotificationUIManager;
32 class PrefServiceSimple; 32 class PrefRegistrySimple;
33 class PrefService;
33 class Profile; 34 class Profile;
34 class ProfileManager; 35 class ProfileManager;
35 class RenderWidgetSnapshotTaker; 36 class RenderWidgetSnapshotTaker;
36 class SafeBrowsingService; 37 class SafeBrowsingService;
37 class StatusTray; 38 class StatusTray;
38 class WatchDogThread; 39 class WatchDogThread;
39 40
40 namespace chrome { 41 namespace chrome {
41 class MediaFileSystemRegistry; 42 class MediaFileSystemRegistry;
42 } 43 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 91
91 // Invoked when the user is logging out/shutting down. When logging off we may 92 // Invoked when the user is logging out/shutting down. When logging off we may
92 // not have enough time to do a normal shutdown. This method is invoked prior 93 // not have enough time to do a normal shutdown. This method is invoked prior
93 // to normal shutdown and saves any state that must be saved before we are 94 // to normal shutdown and saves any state that must be saved before we are
94 // continue shutdown. 95 // continue shutdown.
95 virtual void EndSession() = 0; 96 virtual void EndSession() = 0;
96 97
97 // Services: any of these getters may return NULL 98 // Services: any of these getters may return NULL
98 virtual MetricsService* metrics_service() = 0; 99 virtual MetricsService* metrics_service() = 0;
99 virtual ProfileManager* profile_manager() = 0; 100 virtual ProfileManager* profile_manager() = 0;
100 virtual PrefServiceSimple* local_state() = 0; 101 virtual PrefService* local_state() = 0;
101 virtual net::URLRequestContextGetter* system_request_context() = 0; 102 virtual net::URLRequestContextGetter* system_request_context() = 0;
102 virtual chrome_variations::VariationsService* variations_service() = 0; 103 virtual chrome_variations::VariationsService* variations_service() = 0;
103 104
104 #if defined(OS_CHROMEOS) 105 #if defined(OS_CHROMEOS)
105 // Returns the out-of-memory priority manager. 106 // Returns the out-of-memory priority manager.
106 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0; 107 virtual chromeos::OomPriorityManager* oom_priority_manager() = 0;
107 #endif // defined(OS_CHROMEOS) 108 #endif // defined(OS_CHROMEOS)
108 109
109 virtual extensions::EventRouterForwarder* 110 virtual extensions::EventRouterForwarder*
110 extension_event_router_forwarder() = 0; 111 extension_event_router_forwarder() = 0;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 virtual void PlatformSpecificCommandLineProcessing( 209 virtual void PlatformSpecificCommandLineProcessing(
209 const CommandLine& command_line) = 0; 210 const CommandLine& command_line) = 0;
210 211
211 private: 212 private:
212 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 213 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
213 }; 214 };
214 215
215 extern BrowserProcess* g_browser_process; 216 extern BrowserProcess* g_browser_process;
216 217
217 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 218 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698