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

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

Issue 308433004: Reduce plugin_metrics_provider_ usage in MetricsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 // 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 13 matching lines...) Expand all
24 class DownloadStatusUpdater; 24 class DownloadStatusUpdater;
25 class GLStringManager; 25 class GLStringManager;
26 class GpuModeManager; 26 class GpuModeManager;
27 class IconManager; 27 class IconManager;
28 class IntranetRedirectDetector; 28 class IntranetRedirectDetector;
29 class IOThread; 29 class IOThread;
30 class MediaFileSystemRegistry; 30 class MediaFileSystemRegistry;
31 class MetricsService; 31 class MetricsService;
32 class NetworkTimeTracker; 32 class NetworkTimeTracker;
33 class NotificationUIManager; 33 class NotificationUIManager;
34 class PluginMetricsProvider;
34 class PrefRegistrySimple; 35 class PrefRegistrySimple;
35 class PrefService; 36 class PrefService;
36 class Profile; 37 class Profile;
37 class ProfileManager; 38 class ProfileManager;
38 class SafeBrowsingService; 39 class SafeBrowsingService;
39 class StatusTray; 40 class StatusTray;
40 class WatchDogThread; 41 class WatchDogThread;
41 #if defined(ENABLE_WEBRTC) 42 #if defined(ENABLE_WEBRTC)
42 class WebRtcLogUploader; 43 class WebRtcLogUploader;
43 #endif 44 #endif
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void ResourceDispatcherHostCreated() = 0; 98 virtual void ResourceDispatcherHostCreated() = 0;
98 99
99 // Invoked when the user is logging out/shutting down. When logging off we may 100 // Invoked when the user is logging out/shutting down. When logging off we may
100 // not have enough time to do a normal shutdown. This method is invoked prior 101 // not have enough time to do a normal shutdown. This method is invoked prior
101 // to normal shutdown and saves any state that must be saved before we are 102 // to normal shutdown and saves any state that must be saved before we are
102 // continue shutdown. 103 // continue shutdown.
103 virtual void EndSession() = 0; 104 virtual void EndSession() = 0;
104 105
105 // Services: any of these getters may return NULL 106 // Services: any of these getters may return NULL
106 virtual MetricsService* metrics_service() = 0; 107 virtual MetricsService* metrics_service() = 0;
108 virtual PluginMetricsProvider* plugin_metrics_provider() = 0;
Alexei Svitkine (slow) 2014/05/29 20:47:44 I'd really like to hear Ilya's thoughts on this, b
Alexei Svitkine (slow) 2014/05/29 20:49:03 (Just to clarify, my suggestion is to expose Metri
Ilya Sherman 2014/05/29 21:04:13 Honestly, either approach is fine with me. On the
blundell 2014/05/30 14:42:10 Done.
107 virtual rappor::RapporService* rappor_service() = 0; 109 virtual rappor::RapporService* rappor_service() = 0;
108 virtual ProfileManager* profile_manager() = 0; 110 virtual ProfileManager* profile_manager() = 0;
109 virtual PrefService* local_state() = 0; 111 virtual PrefService* local_state() = 0;
110 virtual net::URLRequestContextGetter* system_request_context() = 0; 112 virtual net::URLRequestContextGetter* system_request_context() = 0;
111 virtual chrome_variations::VariationsService* variations_service() = 0; 113 virtual chrome_variations::VariationsService* variations_service() = 0;
112 114
113 virtual BrowserProcessPlatformPart* platform_part() = 0; 115 virtual BrowserProcessPlatformPart* platform_part() = 0;
114 116
115 virtual extensions::EventRouterForwarder* 117 virtual extensions::EventRouterForwarder*
116 extension_event_router_forwarder() = 0; 118 extension_event_router_forwarder() = 0;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 224
223 virtual NetworkTimeTracker* network_time_tracker() = 0; 225 virtual NetworkTimeTracker* network_time_tracker() = 0;
224 226
225 private: 227 private:
226 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 228 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
227 }; 229 };
228 230
229 extern BrowserProcess* g_browser_process; 231 extern BrowserProcess* g_browser_process;
230 232
231 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 233 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.h » ('j') | chrome/browser/metrics/metrics_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698