OLD | NEW |
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 file defines a service that collects information about the user | 5 // This file defines a service that collects information about the user |
6 // experience in order to help improve future versions of the app. | 6 // experience in order to help improve future versions of the app. |
7 | 7 |
8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
10 | 10 |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 static ShutdownCleanliness clean_shutdown_status_; | 541 static ShutdownCleanliness clean_shutdown_status_; |
542 | 542 |
543 // Field trial groups that map to Chrome configuration states. | 543 // Field trial groups that map to Chrome configuration states. |
544 SyntheticTrialGroups synthetic_trial_groups_; | 544 SyntheticTrialGroups synthetic_trial_groups_; |
545 | 545 |
546 ObserverList<MetricsServiceObserver> observers_; | 546 ObserverList<MetricsServiceObserver> observers_; |
547 | 547 |
548 // Confirms single-threaded access to |observers_| in debug builds. | 548 // Confirms single-threaded access to |observers_| in debug builds. |
549 base::ThreadChecker thread_checker_; | 549 base::ThreadChecker thread_checker_; |
550 | 550 |
551 friend class ChromeMetricsServiceAccessor; | 551 friend class MetricsServiceAccessor; |
552 | 552 |
553 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); | 553 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); |
554 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); | 554 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); |
555 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, | 555 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, |
556 PermutedEntropyCacheClearedWhenLowEntropyReset); | 556 PermutedEntropyCacheClearedWhenLowEntropyReset); |
557 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); | 557 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); |
558 | 558 |
559 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 559 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
560 }; | 560 }; |
561 | 561 |
562 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 562 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |