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

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

Issue 12886034: Remove experimental code to pick the "warmest" socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, fix conflict Created 7 years, 8 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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/scoped_vector.h"
12 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
13 #include "base/tracked_objects.h" 11 #include "base/tracked_objects.h"
14 #include "chrome/browser/chrome_browser_field_trials.h" 12 #include "chrome/browser/chrome_browser_field_trials.h"
15 #include "chrome/browser/first_run/first_run.h" 13 #include "chrome/browser/first_run/first_run.h"
16 #include "chrome/browser/process_singleton.h" 14 #include "chrome/browser/process_singleton.h"
17 #include "chrome/browser/task_profiler/auto_tracking.h" 15 #include "chrome/browser/task_profiler/auto_tracking.h"
18 #include "chrome/browser/ui/startup/startup_browser_creator.h" 16 #include "chrome/browser/ui/startup/startup_browser_creator.h"
19 #include "content/public/browser/browser_main_parts.h" 17 #include "content/public/browser/browser_main_parts.h"
20 18
21 class ActiveTabTracker; 19 class ActiveTabTracker;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 scoped_ptr<ActiveTabTracker> active_tab_tracker_; 190 scoped_ptr<ActiveTabTracker> active_tab_tracker_;
193 #endif 191 #endif
194 192
195 // Members needed across shutdown methods. 193 // Members needed across shutdown methods.
196 bool restart_last_session_; 194 bool restart_last_session_;
197 195
198 // Tests can set this to true to disable restricting cookie access in the 196 // Tests can set this to true to disable restricting cookie access in the
199 // network stack, as this can only be done once. 197 // network stack, as this can only be done once.
200 static bool disable_enforcing_cookie_policies_for_tests_; 198 static bool disable_enforcing_cookie_policies_for_tests_;
201 199
202 friend class BrowserMainTest;
203 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest,
204 WarmConnectionFieldTrial_WarmestSocket);
205 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Random);
206 FRIEND_TEST_ALL_PREFIXES(BrowserMainTest, WarmConnectionFieldTrial_Invalid);
207 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 200 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
208 }; 201 };
209 202
210 // Records the conditions that can prevent Breakpad from generating and 203 // Records the conditions that can prevent Breakpad from generating and
211 // sending crash reports. The presence of a Breakpad handler (after 204 // sending crash reports. The presence of a Breakpad handler (after
212 // attempting to initialize crash reporting) and the presence of a debugger 205 // attempting to initialize crash reporting) and the presence of a debugger
213 // are registered with the UMA metrics service. 206 // are registered with the UMA metrics service.
214 void RecordBreakpadStatusUMA(MetricsService* metrics); 207 void RecordBreakpadStatusUMA(MetricsService* metrics);
215 208
216 // Displays a warning message if some minimum level of OS support is not 209 // Displays a warning message if some minimum level of OS support is not
217 // present on the current platform. 210 // present on the current platform.
218 void WarnAboutMinimumSystemRequirements(); 211 void WarnAboutMinimumSystemRequirements();
219 212
220 // Records the time from our process' startup to the present time in 213 // Records the time from our process' startup to the present time in
221 // the Startup.BrowserMessageLoopStartTime UMA histogram. 214 // the Startup.BrowserMessageLoopStartTime UMA histogram.
222 void RecordBrowserStartupTime(); 215 void RecordBrowserStartupTime();
223 216
224 // Records a time value to an UMA histogram in the context of the 217 // Records a time value to an UMA histogram in the context of the
225 // PreReadExperiment field-trial. This also reports to the appropriate 218 // PreReadExperiment field-trial. This also reports to the appropriate
226 // sub-histogram (_PreRead(Enabled|Disabled)). 219 // sub-histogram (_PreRead(Enabled|Disabled)).
227 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); 220 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time);
228 221
229 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 222 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_field_trials.cc ('k') | chrome/browser/chrome_browser_main_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698