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

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

Issue 10541019: Adding a field trial for testing --force-compositing-mode on 50% of (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 27 matching lines...) Expand all
38 } 38 }
39 39
40 namespace chrome_browser_metrics { 40 namespace chrome_browser_metrics {
41 class TrackingSynchronizer; 41 class TrackingSynchronizer;
42 } 42 }
43 43
44 namespace content { 44 namespace content {
45 struct MainFunctionParams; 45 struct MainFunctionParams;
46 } 46 }
47 47
48 namespace chrome_browser_trials {
49 extern bool g_in_force_compositing_mode_trial;
50 }
51
48 class ChromeBrowserMainParts : public content::BrowserMainParts { 52 class ChromeBrowserMainParts : public content::BrowserMainParts {
49 public: 53 public:
50 virtual ~ChromeBrowserMainParts(); 54 virtual ~ChromeBrowserMainParts();
51 55
52 // Add additional ChromeBrowserMainExtraParts. 56 // Add additional ChromeBrowserMainExtraParts.
53 virtual void AddParts(ChromeBrowserMainExtraParts* parts); 57 virtual void AddParts(ChromeBrowserMainExtraParts* parts);
54 58
55 protected: 59 protected:
56 explicit ChromeBrowserMainParts( 60 explicit ChromeBrowserMainParts(
57 const content::MainFunctionParams& parameters); 61 const content::MainFunctionParams& parameters);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // has on retention and general apps/webstore usage. 126 // has on retention and general apps/webstore usage.
123 void DefaultAppsFieldTrial(); 127 void DefaultAppsFieldTrial();
124 128
125 // A field trial to see what effects launching Chrome automatically on 129 // A field trial to see what effects launching Chrome automatically on
126 // computer startup has on retention and usage of Chrome. 130 // computer startup has on retention and usage of Chrome.
127 void AutoLaunchChromeFieldTrial(); 131 void AutoLaunchChromeFieldTrial();
128 132
129 // Field trial for testing domain bound certs. 133 // Field trial for testing domain bound certs.
130 void DomainBoundCertsFieldTrial(); 134 void DomainBoundCertsFieldTrial();
131 135
136 // Field trial for testing compositing on all pages.
137 void ForceCompositingModeFieldTrial();
138
132 // A collection of field trials intended to test the uniformity and 139 // A collection of field trials intended to test the uniformity and
133 // correctness of the field trial control, bucketing and reporting systems. 140 // correctness of the field trial control, bucketing and reporting systems.
134 void SetupUniformityFieldTrials(); 141 void SetupUniformityFieldTrials();
135 142
136 // Methods for |SetupMetricsAndFieldTrials()| -------------------------------- 143 // Methods for |SetupMetricsAndFieldTrials()| --------------------------------
137 144
138 // Constructs metrics service and does related initialization, including 145 // Constructs metrics service and does related initialization, including
139 // creation of field trials. Call only after labs have been converted to 146 // creation of field trials. Call only after labs have been converted to
140 // switches. 147 // switches.
141 void SetupMetricsAndFieldTrials(); 148 void SetupMetricsAndFieldTrials();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // Records the time from our process' startup to the present time in 243 // Records the time from our process' startup to the present time in
237 // the UMA histogram |metric_name|. 244 // the UMA histogram |metric_name|.
238 void RecordBrowserStartupTime(); 245 void RecordBrowserStartupTime();
239 246
240 // Records a time value to an UMA histogram in the context of the 247 // Records a time value to an UMA histogram in the context of the
241 // PreReadExperiment field-trial. This also reports to the appropriate 248 // PreReadExperiment field-trial. This also reports to the appropriate
242 // sub-histogram (_PreRead(Enabled|Disabled)). 249 // sub-histogram (_PreRead(Enabled|Disabled)).
243 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); 250 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time);
244 251
245 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 252 #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/chrome_browser_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698