| OLD | NEW |
| 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 #include <vector> | 10 #include <vector> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class FlashDOMHandler; | 23 class FlashDOMHandler; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace chrome { | 26 namespace chrome { |
| 27 void AttemptRestart(); | 27 void AttemptRestart(); |
| 28 namespace android { | 28 namespace android { |
| 29 class ExternalDataUseObserverBridge; | 29 class ExternalDataUseObserverBridge; |
| 30 } | 30 } |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace chrome_browser { | |
| 34 void SetupPreReadFieldTrial(); | |
| 35 } | |
| 36 | |
| 37 namespace component_updater { | 33 namespace component_updater { |
| 38 class ComponentUpdateService; | 34 class ComponentUpdateService; |
| 39 } | 35 } |
| 40 | 36 |
| 41 namespace domain_reliability { | 37 namespace domain_reliability { |
| 42 class DomainReliabilityServiceFactory; | 38 class DomainReliabilityServiceFactory; |
| 43 } | 39 } |
| 44 | 40 |
| 45 namespace extensions { | 41 namespace extensions { |
| 46 class ChromeExtensionWebContentsObserver; | 42 class ChromeExtensionWebContentsObserver; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // This class limits and documents access to metrics service helper methods. | 76 // This class limits and documents access to metrics service helper methods. |
| 81 // Since these methods are private, each user has to be explicitly declared | 77 // Since these methods are private, each user has to be explicitly declared |
| 82 // as a 'friend' below. | 78 // as a 'friend' below. |
| 83 class ChromeMetricsServiceAccessor : public metrics::MetricsServiceAccessor { | 79 class ChromeMetricsServiceAccessor : public metrics::MetricsServiceAccessor { |
| 84 private: | 80 private: |
| 85 friend class ::CrashesDOMHandler; | 81 friend class ::CrashesDOMHandler; |
| 86 friend class ::FlashDOMHandler; | 82 friend class ::FlashDOMHandler; |
| 87 friend class ArcSupportHost; | 83 friend class ArcSupportHost; |
| 88 friend class BrowserProcessImpl; | 84 friend class BrowserProcessImpl; |
| 89 friend void chrome::AttemptRestart(); | 85 friend void chrome::AttemptRestart(); |
| 90 friend void chrome_browser::SetupPreReadFieldTrial(); | |
| 91 friend class chrome::android::ExternalDataUseObserverBridge; | 86 friend class chrome::android::ExternalDataUseObserverBridge; |
| 92 friend class ChromeMetricsServicesManagerClient; | 87 friend class ChromeMetricsServicesManagerClient; |
| 93 friend class ChromeRenderMessageFilter; | 88 friend class ChromeRenderMessageFilter; |
| 94 friend class DataReductionProxyChromeSettings; | 89 friend class DataReductionProxyChromeSettings; |
| 95 friend class domain_reliability::DomainReliabilityServiceFactory; | 90 friend class domain_reliability::DomainReliabilityServiceFactory; |
| 96 friend class extensions::ChromeExtensionWebContentsObserver; | 91 friend class extensions::ChromeExtensionWebContentsObserver; |
| 97 friend class extensions::FileManagerPrivateIsUMAEnabledFunction; | 92 friend class extensions::FileManagerPrivateIsUMAEnabledFunction; |
| 98 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction; | 93 friend class extensions::MetricsPrivateGetIsCrashReportingEnabledFunction; |
| 99 friend void ChangeMetricsReportingStateWithReply( | 94 friend void ChangeMetricsReportingStateWithReply( |
| 100 bool, | 95 bool, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // with g_browser_process->metrics_service(). See that function's declaration | 136 // with g_browser_process->metrics_service(). See that function's declaration |
| 142 // for details. | 137 // for details. |
| 143 static bool RegisterSyntheticFieldTrialWithNameHash( | 138 static bool RegisterSyntheticFieldTrialWithNameHash( |
| 144 uint32_t trial_name_hash, | 139 uint32_t trial_name_hash, |
| 145 const std::string& group_name); | 140 const std::string& group_name); |
| 146 | 141 |
| 147 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); | 142 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeMetricsServiceAccessor); |
| 148 }; | 143 }; |
| 149 | 144 |
| 150 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ | 145 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_ACCESSOR_H_ |
| OLD | NEW |