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

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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 void CreateStatusTray(); 157 void CreateStatusTray();
157 void CreateBackgroundModeManager(); 158 void CreateBackgroundModeManager();
158 159
159 void ApplyAllowCrossOriginAuthPromptPolicy(); 160 void ApplyAllowCrossOriginAuthPromptPolicy();
160 void ApplyDefaultBrowserPolicy(); 161 void ApplyDefaultBrowserPolicy();
161 void ApplyMetricsReportingPolicy(); 162 void ApplyMetricsReportingPolicy();
162 163
163 bool created_metrics_service_; 164 bool created_metrics_service_;
164 scoped_ptr<MetricsService> metrics_service_; 165 scoped_ptr<MetricsService> metrics_service_;
165 166
167 scoped_ptr<rappor::RapporService> rappor_service_;
168
166 scoped_ptr<IOThread> io_thread_; 169 scoped_ptr<IOThread> io_thread_;
167 170
168 bool created_watchdog_thread_; 171 bool created_watchdog_thread_;
169 scoped_ptr<WatchDogThread> watchdog_thread_; 172 scoped_ptr<WatchDogThread> watchdog_thread_;
170 173
171 bool created_browser_policy_connector_; 174 bool created_browser_policy_connector_;
172 #if defined(ENABLE_CONFIGURATION_POLICY) 175 #if defined(ENABLE_CONFIGURATION_POLICY)
173 // Must be destroyed after |local_state_|. 176 // Must be destroyed after |local_state_|.
174 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; 177 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;
175 #else 178 #else
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 304
302 #if defined(ENABLE_WEBRTC) 305 #if defined(ENABLE_WEBRTC)
303 // Lazily initialized. 306 // Lazily initialized.
304 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; 307 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_;
305 #endif 308 #endif
306 309
307 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 310 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
308 }; 311 };
309 312
310 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 313 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698