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

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

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 namespace prerender { 73 namespace prerender {
74 class PrerenderTracker; 74 class PrerenderTracker;
75 } 75 }
76 76
77 namespace printing { 77 namespace printing {
78 class BackgroundPrintingManager; 78 class BackgroundPrintingManager;
79 class PrintJobManager; 79 class PrintJobManager;
80 class PrintPreviewDialogController; 80 class PrintPreviewDialogController;
81 } 81 }
82 82
83 namespace rappor {
84 class RapporService;
85 }
86
83 namespace safe_browsing { 87 namespace safe_browsing {
84 class ClientSideDetectionService; 88 class ClientSideDetectionService;
85 } 89 }
86 90
87 // NOT THREAD SAFE, call only from the main thread. 91 // NOT THREAD SAFE, call only from the main thread.
88 // These functions shouldn't return NULL unless otherwise noted. 92 // These functions shouldn't return NULL unless otherwise noted.
89 class BrowserProcess { 93 class BrowserProcess {
90 public: 94 public:
91 BrowserProcess(); 95 BrowserProcess();
92 virtual ~BrowserProcess(); 96 virtual ~BrowserProcess();
93 97
94 // Called when the ResourceDispatcherHost object is created by content. 98 // Called when the ResourceDispatcherHost object is created by content.
95 virtual void ResourceDispatcherHostCreated() = 0; 99 virtual void ResourceDispatcherHostCreated() = 0;
96 100
97 // Invoked when the user is logging out/shutting down. When logging off we may 101 // Invoked when the user is logging out/shutting down. When logging off we may
98 // not have enough time to do a normal shutdown. This method is invoked prior 102 // not have enough time to do a normal shutdown. This method is invoked prior
99 // to normal shutdown and saves any state that must be saved before we are 103 // to normal shutdown and saves any state that must be saved before we are
100 // continue shutdown. 104 // continue shutdown.
101 virtual void EndSession() = 0; 105 virtual void EndSession() = 0;
102 106
103 // Services: any of these getters may return NULL 107 // Services: any of these getters may return NULL
104 virtual MetricsService* metrics_service() = 0; 108 virtual MetricsService* metrics_service() = 0;
109 virtual rappor::RapporService* rappor_service() = 0;
105 virtual ProfileManager* profile_manager() = 0; 110 virtual ProfileManager* profile_manager() = 0;
106 virtual PrefService* local_state() = 0; 111 virtual PrefService* local_state() = 0;
107 virtual net::URLRequestContextGetter* system_request_context() = 0; 112 virtual net::URLRequestContextGetter* system_request_context() = 0;
108 virtual chrome_variations::VariationsService* variations_service() = 0; 113 virtual chrome_variations::VariationsService* variations_service() = 0;
109 114
110 virtual BrowserProcessPlatformPart* platform_part() = 0; 115 virtual BrowserProcessPlatformPart* platform_part() = 0;
111 116
112 virtual extensions::EventRouterForwarder* 117 virtual extensions::EventRouterForwarder*
113 extension_event_router_forwarder() = 0; 118 extension_event_router_forwarder() = 0;
114 119
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 virtual WebRtcLogUploader* webrtc_log_uploader() = 0; 229 virtual WebRtcLogUploader* webrtc_log_uploader() = 0;
225 #endif 230 #endif
226 231
227 private: 232 private:
228 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 233 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
229 }; 234 };
230 235
231 extern BrowserProcess* g_browser_process; 236 extern BrowserProcess* g_browser_process;
232 237
233 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 238 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698