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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_accessor.h

Issue 1411593004: Eliminate //chrome dependencies from MetricsServicesManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix official build Created 5 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // This class limits and documents access to metrics service helper methods. 59 // This class limits and documents access to metrics service helper methods.
60 // Since these methods are private, each user has to be explicitly declared 60 // Since these methods are private, each user has to be explicitly declared
61 // as a 'friend' below. 61 // as a 'friend' below.
62 class ChromeMetricsServiceAccessor : public metrics::MetricsServiceAccessor { 62 class ChromeMetricsServiceAccessor : public metrics::MetricsServiceAccessor {
63 private: 63 private:
64 friend class ::CrashesDOMHandler; 64 friend class ::CrashesDOMHandler;
65 friend class ::FlashDOMHandler; 65 friend class ::FlashDOMHandler;
66 friend class BrowserProcessImpl; 66 friend class BrowserProcessImpl;
67 friend class ChromeExtensionDownloaderFactory; 67 friend class ChromeExtensionDownloaderFactory;
68 friend class ChromeMetricsServicesManagerClient;
68 friend class ChromeRenderMessageFilter; 69 friend class ChromeRenderMessageFilter;
69 friend class DataReductionProxyChromeSettings; 70 friend class DataReductionProxyChromeSettings;
70 friend class domain_reliability::DomainReliabilityServiceFactory; 71 friend class domain_reliability::DomainReliabilityServiceFactory;
71 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction; 72 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction;
72 friend class extensions::FileManagerPrivateIsUMAEnabledFunction; 73 friend class extensions::FileManagerPrivateIsUMAEnabledFunction;
73 friend void InitiateMetricsReportingChange( 74 friend void InitiateMetricsReportingChange(
74 bool, const OnMetricsReportingCallbackType&); 75 bool, const OnMetricsReportingCallbackType&);
75 friend class MetricsServicesManager;
76 friend class options::BrowserOptionsHandler; 76 friend class options::BrowserOptionsHandler;
77 friend bool prerender::IsOmniboxEnabled(Profile* profile); 77 friend bool prerender::IsOmniboxEnabled(Profile* profile);
78 friend class safe_browsing::IncidentReportingService; 78 friend class safe_browsing::IncidentReportingService;
79 friend class speech::ChromeSpeechRecognitionManagerDelegate; 79 friend class speech::ChromeSpeechRecognitionManagerDelegate;
80 friend class StackSamplingConfiguration; 80 friend class StackSamplingConfiguration;
81 friend class system_logs::ChromeInternalLogSource; 81 friend class system_logs::ChromeInternalLogSource;
82 friend class UmaSessionStats; 82 friend class UmaSessionStats;
83 friend class safe_browsing::SRTFetcher; 83 friend class safe_browsing::SRTFetcher;
84 84
85 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest, 85 FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceAccessorTest,
(...skipping 15 matching lines...) Expand all
101 // with g_browser_process->metrics_service(). See that function's declaration 101 // with g_browser_process->metrics_service(). See that function's declaration
102 // for details. 102 // for details.
103 static bool RegisterSyntheticFieldTrialWithNameHash( 103 static bool RegisterSyntheticFieldTrialWithNameHash(
104 uint32_t trial_name_hash, 104 uint32_t trial_name_hash,
105 const std::string& group_name); 105 const std::string& group_name);
106 106
107 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); 107 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor);
108 }; 108 };
109 109
110 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ 110 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/metrics/chrome_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698