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

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

Issue 293013002: Create OmniboxMetricsProvider class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/extension_metrics.h" 15 #include "chrome/browser/metrics/extension_metrics.h"
16 #include "chrome/browser/metrics/metrics_network_observer.h" 16 #include "chrome/browser/metrics/metrics_network_observer.h"
17 #include "chrome/common/metrics/variations/variations_util.h" 17 #include "chrome/common/metrics/variations/variations_util.h"
18 #include "chrome/installer/util/google_update_settings.h" 18 #include "chrome/installer/util/google_update_settings.h"
19 #include "components/metrics/metrics_log_base.h" 19 #include "components/metrics/metrics_log_base.h"
20 #include "ui/gfx/size.h" 20 #include "ui/gfx/size.h"
21 21
22 class HashedExtensionMetrics; 22 class HashedExtensionMetrics;
23 class MetricsNetworkObserver; 23 class MetricsNetworkObserver;
24 struct OmniboxLog;
25 class PrefService; 24 class PrefService;
26 class PrefRegistrySimple; 25 class PrefRegistrySimple;
27 26
28 #if defined(OS_CHROMEOS) 27 #if defined(OS_CHROMEOS)
29 class MetricsLogChromeOS; 28 class MetricsLogChromeOS;
30 #endif 29 #endif
31 30
32 namespace base { 31 namespace base {
33 class DictionaryValue; 32 class DictionaryValue;
34 } 33 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const std::vector<metrics::MetricsProvider*>& metrics_providers, 96 const std::vector<metrics::MetricsProvider*>& metrics_providers,
98 const std::vector<content::WebPluginInfo>& plugin_list, 97 const std::vector<content::WebPluginInfo>& plugin_list,
99 const GoogleUpdateMetrics& google_update_metrics, 98 const GoogleUpdateMetrics& google_update_metrics,
100 const std::vector<variations::ActiveGroupId>& synthetic_trials); 99 const std::vector<variations::ActiveGroupId>& synthetic_trials);
101 100
102 // Loads the environment proto that was saved by the last RecordEnvironment() 101 // Loads the environment proto that was saved by the last RecordEnvironment()
103 // call from prefs and clears the pref value. Returns true on success or false 102 // call from prefs and clears the pref value. Returns true on success or false
104 // if there was no saved environment in prefs or it could not be decoded. 103 // if there was no saved environment in prefs or it could not be decoded.
105 bool LoadSavedEnvironmentFromPrefs(); 104 bool LoadSavedEnvironmentFromPrefs();
106 105
107 // Records the input text, available choices, and selected entry when the
108 // user uses the Omnibox to open a URL.
109 void RecordOmniboxOpenedURL(const OmniboxLog& log);
110
111 // Records the passed profiled data, which should be a snapshot of the 106 // Records the passed profiled data, which should be a snapshot of the
112 // browser's profiled performance during startup for a single process. 107 // browser's profiled performance during startup for a single process.
113 void RecordProfilerData( 108 void RecordProfilerData(
114 const tracked_objects::ProcessDataSnapshot& process_data, 109 const tracked_objects::ProcessDataSnapshot& process_data,
115 int process_type); 110 int process_type);
116 111
117 // Writes application stability metrics, including stability metrics provided 112 // Writes application stability metrics, including stability metrics provided
118 // by the specified set of |metrics_providers|. The system profile portion of 113 // by the specified set of |metrics_providers|. The system profile portion of
119 // the log must have already been filled in by a call to RecordEnvironment() 114 // the log must have already been filled in by a call to RecordEnvironment()
120 // or LoadSavedEnvironmentFromPrefs(). 115 // or LoadSavedEnvironmentFromPrefs().
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // The time when the current log was created. 194 // The time when the current log was created.
200 const base::TimeTicks creation_time_; 195 const base::TimeTicks creation_time_;
201 196
202 // For including information on which extensions are installed in reports. 197 // For including information on which extensions are installed in reports.
203 HashedExtensionMetrics extension_metrics_; 198 HashedExtensionMetrics extension_metrics_;
204 199
205 DISALLOW_COPY_AND_ASSIGN(MetricsLog); 200 DISALLOW_COPY_AND_ASSIGN(MetricsLog);
206 }; 201 };
207 202
208 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ 203 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698