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

Side by Side Diff: chrome/browser/browser_process_impl.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/browser_process.h ('k') | chrome/browser/browser_process_impl.cc » ('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 // When each service is created, we set a flag indicating this. At this point, 5 // When each service is created, we set a flag indicating this. At this point,
6 // the service initialization could fail or succeed. This allows us to remember 6 // the service initialization could fail or succeed. This allows us to remember
7 // if we tried to create a service, and not try creating it over and over if 7 // if we tried to create a service, and not try creating it over and over if
8 // the creation failed. 8 // the creation failed.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // ChromeBrowserMain based on notifications from the content 66 // ChromeBrowserMain based on notifications from the content
67 // framework, rather than in the destructor, so that we can 67 // framework, rather than in the destructor, so that we can
68 // interleave cleanup with threads being stopped. 68 // interleave cleanup with threads being stopped.
69 void StartTearDown(); 69 void StartTearDown();
70 void PostDestroyThreads(); 70 void PostDestroyThreads();
71 71
72 // BrowserProcess implementation. 72 // BrowserProcess implementation.
73 virtual void ResourceDispatcherHostCreated() OVERRIDE; 73 virtual void ResourceDispatcherHostCreated() OVERRIDE;
74 virtual void EndSession() OVERRIDE; 74 virtual void EndSession() OVERRIDE;
75 virtual MetricsService* metrics_service() OVERRIDE; 75 virtual MetricsService* metrics_service() OVERRIDE;
76 virtual rappor::RapporService* rappor_service() OVERRIDE;
76 virtual IOThread* io_thread() OVERRIDE; 77 virtual IOThread* io_thread() OVERRIDE;
77 virtual WatchDogThread* watchdog_thread() OVERRIDE; 78 virtual WatchDogThread* watchdog_thread() OVERRIDE;
78 virtual ProfileManager* profile_manager() OVERRIDE; 79 virtual ProfileManager* profile_manager() OVERRIDE;
79 virtual PrefService* local_state() OVERRIDE; 80 virtual PrefService* local_state() OVERRIDE;
80 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; 81 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE;
81 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; 82 virtual chrome_variations::VariationsService* variations_service() OVERRIDE;
82 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; 83 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE;
83 virtual extensions::EventRouterForwarder* 84 virtual extensions::EventRouterForwarder*
84 extension_event_router_forwarder() OVERRIDE; 85 extension_event_router_forwarder() OVERRIDE;
85 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; 86 virtual NotificationUIManager* notification_ui_manager() OVERRIDE;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void CreateStatusTray(); 156 void CreateStatusTray();
156 void CreateBackgroundModeManager(); 157 void CreateBackgroundModeManager();
157 158
158 void ApplyAllowCrossOriginAuthPromptPolicy(); 159 void ApplyAllowCrossOriginAuthPromptPolicy();
159 void ApplyDefaultBrowserPolicy(); 160 void ApplyDefaultBrowserPolicy();
160 void ApplyMetricsReportingPolicy(); 161 void ApplyMetricsReportingPolicy();
161 162
162 bool created_metrics_service_; 163 bool created_metrics_service_;
163 scoped_ptr<MetricsService> metrics_service_; 164 scoped_ptr<MetricsService> metrics_service_;
164 165
166 scoped_ptr<rappor::RapporService> rappor_service_;
167
165 scoped_ptr<IOThread> io_thread_; 168 scoped_ptr<IOThread> io_thread_;
166 169
167 bool created_watchdog_thread_; 170 bool created_watchdog_thread_;
168 scoped_ptr<WatchDogThread> watchdog_thread_; 171 scoped_ptr<WatchDogThread> watchdog_thread_;
169 172
170 bool created_browser_policy_connector_; 173 bool created_browser_policy_connector_;
171 #if defined(ENABLE_CONFIGURATION_POLICY) 174 #if defined(ENABLE_CONFIGURATION_POLICY)
172 // Must be destroyed after |local_state_|. 175 // Must be destroyed after |local_state_|.
173 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; 176 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;
174 #else 177 #else
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 299
297 #if defined(ENABLE_WEBRTC) 300 #if defined(ENABLE_WEBRTC)
298 // Lazily initialized. 301 // Lazily initialized.
299 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; 302 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_;
300 #endif 303 #endif
301 304
302 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 305 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
303 }; 306 };
304 307
305 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 308 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process.h ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698