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 #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 Loading... |
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 Loading... |
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_ |
OLD | NEW |