| 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 20 matching lines...) Expand all Loading... |
| 31 #include "components/metrics/metrics_log_manager.h" | 31 #include "components/metrics/metrics_log_manager.h" |
| 32 #include "components/metrics/metrics_provider.h" | 32 #include "components/metrics/metrics_provider.h" |
| 33 #include "components/metrics/metrics_service_observer.h" | 33 #include "components/metrics/metrics_service_observer.h" |
| 34 #include "components/variations/active_field_trials.h" | 34 #include "components/variations/active_field_trials.h" |
| 35 | 35 |
| 36 class GoogleUpdateMetricsProviderWin; | 36 class GoogleUpdateMetricsProviderWin; |
| 37 class MetricsReportingScheduler; | 37 class MetricsReportingScheduler; |
| 38 class PrefService; | 38 class PrefService; |
| 39 class PrefRegistrySimple; | 39 class PrefRegistrySimple; |
| 40 class PluginMetricsProvider; | 40 class PluginMetricsProvider; |
| 41 class ProfilerMetricsProvider; |
| 41 | 42 |
| 42 namespace base { | 43 namespace base { |
| 43 class DictionaryValue; | 44 class DictionaryValue; |
| 44 class HistogramSamples; | 45 class HistogramSamples; |
| 45 class MessageLoopProxy; | 46 class MessageLoopProxy; |
| 46 class PrefService; | 47 class PrefService; |
| 47 } | 48 } |
| 48 | 49 |
| 49 namespace variations { | 50 namespace variations { |
| 50 struct ActiveGroupId; | 51 struct ActiveGroupId; |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // be cut, and logs are neither persisted nor uploaded. | 427 // be cut, and logs are neither persisted nor uploaded. |
| 427 bool test_mode_active_; | 428 bool test_mode_active_; |
| 428 | 429 |
| 429 // The progression of states made by the browser are recorded in the following | 430 // The progression of states made by the browser are recorded in the following |
| 430 // state. | 431 // state. |
| 431 State state_; | 432 State state_; |
| 432 | 433 |
| 433 // Whether the initial stability log has been recorded during startup. | 434 // Whether the initial stability log has been recorded during startup. |
| 434 bool has_initial_stability_log_; | 435 bool has_initial_stability_log_; |
| 435 | 436 |
| 437 ProfilerMetricsProvider* profiler_metrics_provider_; |
| 438 |
| 436 #if defined(ENABLE_PLUGINS) | 439 #if defined(ENABLE_PLUGINS) |
| 437 PluginMetricsProvider* plugin_metrics_provider_; | 440 PluginMetricsProvider* plugin_metrics_provider_; |
| 438 #endif | 441 #endif |
| 439 | 442 |
| 440 #if defined(OS_WIN) | 443 #if defined(OS_WIN) |
| 441 GoogleUpdateMetricsProviderWin* google_update_metrics_provider_; | 444 GoogleUpdateMetricsProviderWin* google_update_metrics_provider_; |
| 442 #endif | 445 #endif |
| 443 | 446 |
| 444 // The initial metrics log, used to record startup metrics (histograms and | 447 // The initial metrics log, used to record startup metrics (histograms and |
| 445 // profiler data). Note that if a crash occurred in the previous session, an | 448 // profiler data). Note that if a crash occurred in the previous session, an |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); | 499 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); |
| 497 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); | 500 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); |
| 498 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, | 501 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, |
| 499 PermutedEntropyCacheClearedWhenLowEntropyReset); | 502 PermutedEntropyCacheClearedWhenLowEntropyReset); |
| 500 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); | 503 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); |
| 501 | 504 |
| 502 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 505 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
| 503 }; | 506 }; |
| 504 | 507 |
| 505 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ | 508 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ |
| OLD | NEW |