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

Side by Side Diff: chrome/browser/chrome_browser_main.h

Issue 256143006: Refactor MetricsStateManager class out of MetricsService. (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/chrome_browser_main.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 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 // Constructs metrics service and does related initialization, including 101 // Constructs metrics service and does related initialization, including
102 // creation of field trials. Call only after labs have been converted to 102 // creation of field trials. Call only after labs have been converted to
103 // switches. 103 // switches.
104 void SetupMetricsAndFieldTrials(); 104 void SetupMetricsAndFieldTrials();
105 105
106 // Starts recording of metrics. This can only be called after we have a file 106 // Starts recording of metrics. This can only be called after we have a file
107 // thread. 107 // thread.
108 void StartMetricsRecording(); 108 void StartMetricsRecording();
109 109
110 // Returns true if the user opted in to sending metric reports.
111 bool IsMetricsReportingEnabled();
112
113 // Record time from process startup to present time in an UMA histogram. 110 // Record time from process startup to present time in an UMA histogram.
114 void RecordBrowserStartupTime(); 111 void RecordBrowserStartupTime();
115 112
116 // Records a time value to an UMA histogram in the context of the 113 // Records a time value to an UMA histogram in the context of the
117 // PreReadExperiment field-trial. This also reports to the appropriate 114 // PreReadExperiment field-trial. This also reports to the appropriate
118 // sub-histogram (_PreRead(Enabled|Disabled)). 115 // sub-histogram (_PreRead(Enabled|Disabled)).
119 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); 116 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time);
120 117
121 // Methods for Main Message Loop ------------------------------------------- 118 // Methods for Main Message Loop -------------------------------------------
122 119
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 bool restart_last_session_; 187 bool restart_last_session_;
191 188
192 // Tests can set this to true to disable restricting cookie access in the 189 // Tests can set this to true to disable restricting cookie access in the
193 // network stack, as this can only be done once. 190 // network stack, as this can only be done once.
194 static bool disable_enforcing_cookie_policies_for_tests_; 191 static bool disable_enforcing_cookie_policies_for_tests_;
195 192
196 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 193 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
197 }; 194 };
198 195
199 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 196 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698