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

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

Issue 10343007: Retrieving Chrome Variations seed from server and storing in local prefs. Loading seed data from lo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 12 matching lines...) Expand all
23 class BrowserProcessImpl; 23 class BrowserProcessImpl;
24 class ChromeBrowserMainExtraParts; 24 class ChromeBrowserMainExtraParts;
25 class FieldTrialSynchronizer; 25 class FieldTrialSynchronizer;
26 class HistogramSynchronizer; 26 class HistogramSynchronizer;
27 class MetricsService; 27 class MetricsService;
28 class PrefService; 28 class PrefService;
29 class Profile; 29 class Profile;
30 class StartupTimeBomb; 30 class StartupTimeBomb;
31 class ShutdownWatcherHelper; 31 class ShutdownWatcherHelper;
32 class TranslateManager; 32 class TranslateManager;
33 class VariationsService;
33 34
34 namespace chrome_browser { 35 namespace chrome_browser {
35 // For use by ShowMissingLocaleMessageBox. 36 // For use by ShowMissingLocaleMessageBox.
36 extern const char kMissingLocaleDataTitle[]; 37 extern const char kMissingLocaleDataTitle[];
37 extern const char kMissingLocaleDataMessage[]; 38 extern const char kMissingLocaleDataMessage[];
38 } 39 }
39 40
40 namespace chrome_browser_metrics { 41 namespace chrome_browser_metrics {
41 class TrackingSynchronizer; 42 class TrackingSynchronizer;
42 } 43 }
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // Members initialized in PreMainMessageLoopRun, needed in 205 // Members initialized in PreMainMessageLoopRun, needed in
205 // PreMainMessageLoopRunThreadsCreated. 206 // PreMainMessageLoopRunThreadsCreated.
206 bool is_first_run_; 207 bool is_first_run_;
207 bool first_run_ui_bypass_; 208 bool first_run_ui_bypass_;
208 PrefService* local_state_; 209 PrefService* local_state_;
209 FilePath user_data_dir_; 210 FilePath user_data_dir_;
210 211
211 // Members needed across shutdown methods. 212 // Members needed across shutdown methods.
212 bool restart_last_session_; 213 bool restart_last_session_;
213 214
215 // Initialized in SetupMetricsAndFieldTrials.
216 scoped_ptr<VariationsService> variations_service_;
Ilya Sherman 2012/05/02 23:15:08 nit: Can this be a member of the MetricsService in
SteveT 2012/05/03 04:02:52 I'm not super familiar with BrowserProcess vs Brow
jwd 2012/05/03 22:27:49 I put it here because I was modeling it after the
217
214 // Tests can set this to true to disable restricting cookie access in the 218 // Tests can set this to true to disable restricting cookie access in the
215 // network stack, as this can only be done once. 219 // network stack, as this can only be done once.
216 static bool disable_enforcing_cookie_policies_for_tests_; 220 static bool disable_enforcing_cookie_policies_for_tests_;
217 221
218 friend class BrowserMainTest; 222 friend class BrowserMainTest;
223
219 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, 224 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest,
220 WarmConnectionFieldTrial_WarmestSocket); 225 WarmConnectionFieldTrial_WarmestSocket);
221 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random); 226 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random);
222 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid); 227 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid);
223 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 228 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
224 }; 229 };
225 230
226 // Records the conditions that can prevent Breakpad from generating and 231 // Records the conditions that can prevent Breakpad from generating and
227 // sending crash reports. The presence of a Breakpad handler (after 232 // sending crash reports. The presence of a Breakpad handler (after
228 // attempting to initialize crash reporting) and the presence of a debugger 233 // attempting to initialize crash reporting) and the presence of a debugger
229 // are registered with the UMA metrics service. 234 // are registered with the UMA metrics service.
230 void RecordBreakpadStatusUMA(MetricsService* metrics); 235 void RecordBreakpadStatusUMA(MetricsService* metrics);
231 236
232 // Displays a warning message if some minimum level of OS support is not 237 // Displays a warning message if some minimum level of OS support is not
233 // present on the current platform. 238 // present on the current platform.
234 void WarnAboutMinimumSystemRequirements(); 239 void WarnAboutMinimumSystemRequirements();
235 240
236 // Records the time from our process' startup to the present time in 241 // Records the time from our process' startup to the present time in
237 // the UMA histogram |metric_name|. 242 // the UMA histogram |metric_name|.
238 void RecordBrowserStartupTime(); 243 void RecordBrowserStartupTime();
239 244
240 // Records a time value to an UMA histogram in the context of the 245 // Records a time value to an UMA histogram in the context of the
241 // PreReadExperiment field-trial. This also reports to the appropriate 246 // PreReadExperiment field-trial. This also reports to the appropriate
242 // sub-histogram (_PreRead(Enabled|Disabled)). 247 // sub-histogram (_PreRead(Enabled|Disabled)).
243 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); 248 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time);
244 249
245 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 250 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | chrome/browser/metrics/proto/study.proto » ('J')

Powered by Google App Engine
This is Rietveld 408576698