| 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 set of user experience metrics data recorded by | 5 // This file defines a set of user experience metrics data recorded by |
| 6 // the MetricsService. This is the unit of data that is sent to the server. | 6 // the MetricsService. This is the unit of data that is sent to the server. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
| 9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "chrome/browser/metrics/metrics_network_observer.h" | 15 #include "chrome/browser/metrics/metrics_network_observer.h" |
| 16 #include "chrome/common/metrics/metrics_log_base.h" | 16 #include "chrome/common/metrics/metrics_log_base.h" |
| 17 #include "chrome/installer/util/google_update_settings.h" | 17 #include "chrome/installer/util/google_update_settings.h" |
| 18 #include "content/public/common/process_type.h" | |
| 19 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
| 20 | 19 |
| 21 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
| 22 #include "chrome/browser/metrics/perf_provider_chromeos.h" | 21 #include "chrome/browser/metrics/perf_provider_chromeos.h" |
| 23 #endif | 22 #endif |
| 24 | 23 |
| 25 struct AutocompleteLog; | 24 struct AutocompleteLog; |
| 26 class MetricsNetworkObserver; | 25 class MetricsNetworkObserver; |
| 27 class PrefService; | 26 class PrefService; |
| 28 class PrefRegistrySimple; | 27 class PrefRegistrySimple; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 const GoogleUpdateMetrics& google_update_metrics); | 105 const GoogleUpdateMetrics& google_update_metrics); |
| 107 | 106 |
| 108 // Records the input text, available choices, and selected entry when the | 107 // Records the input text, available choices, and selected entry when the |
| 109 // user uses the Omnibox to open a URL. | 108 // user uses the Omnibox to open a URL. |
| 110 void RecordOmniboxOpenedURL(const AutocompleteLog& log); | 109 void RecordOmniboxOpenedURL(const AutocompleteLog& log); |
| 111 | 110 |
| 112 // Records the passed profiled data, which should be a snapshot of the | 111 // Records the passed profiled data, which should be a snapshot of the |
| 113 // browser's profiled performance during startup for a single process. | 112 // browser's profiled performance during startup for a single process. |
| 114 void RecordProfilerData( | 113 void RecordProfilerData( |
| 115 const tracked_objects::ProcessDataSnapshot& process_data, | 114 const tracked_objects::ProcessDataSnapshot& process_data, |
| 116 content::ProcessType process_type); | 115 int process_type); |
| 117 | 116 |
| 118 // Record recent delta for critical stability metrics. We can't wait for a | 117 // Record recent delta for critical stability metrics. We can't wait for a |
| 119 // restart to gather these, as that delay biases our observation away from | 118 // restart to gather these, as that delay biases our observation away from |
| 120 // users that run happily for a looooong time. We send increments with each | 119 // users that run happily for a looooong time. We send increments with each |
| 121 // uma log upload, just as we send histogram data. Takes the list of | 120 // uma log upload, just as we send histogram data. Takes the list of |
| 122 // installed plugins as a parameter because that can't be obtained | 121 // installed plugins as a parameter because that can't be obtained |
| 123 // synchronously from the UI thread. | 122 // synchronously from the UI thread. |
| 124 void RecordIncrementalStabilityElements( | 123 void RecordIncrementalStabilityElements( |
| 125 const std::vector<webkit::WebPluginInfo>& plugin_list); | 124 const std::vector<webkit::WebPluginInfo>& plugin_list); |
| 126 | 125 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 MetricsNetworkObserver network_observer_; | 193 MetricsNetworkObserver network_observer_; |
| 195 | 194 |
| 196 #if defined(OS_CHROMEOS) | 195 #if defined(OS_CHROMEOS) |
| 197 metrics::PerfProvider perf_provider_; | 196 metrics::PerfProvider perf_provider_; |
| 198 #endif | 197 #endif |
| 199 | 198 |
| 200 DISALLOW_COPY_AND_ASSIGN(MetricsLog); | 199 DISALLOW_COPY_AND_ASSIGN(MetricsLog); |
| 201 }; | 200 }; |
| 202 | 201 |
| 203 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 202 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
| OLD | NEW |