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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // switches. | 111 // switches. |
112 void SetupMetricsAndFieldTrials(); | 112 void SetupMetricsAndFieldTrials(); |
113 | 113 |
114 // Starts recording of metrics. This can only be called after we have a file | 114 // Starts recording of metrics. This can only be called after we have a file |
115 // thread. | 115 // thread. |
116 void StartMetricsRecording(); | 116 void StartMetricsRecording(); |
117 | 117 |
118 // Record time from process startup to present time in an UMA histogram. | 118 // Record time from process startup to present time in an UMA histogram. |
119 void RecordBrowserStartupTime(); | 119 void RecordBrowserStartupTime(); |
120 | 120 |
| 121 // Reads origin trial policy data from local state and configures command line |
| 122 // for child processes. |
| 123 void SetupOriginTrialsCommandLine(); |
| 124 |
121 // Methods for Main Message Loop ------------------------------------------- | 125 // Methods for Main Message Loop ------------------------------------------- |
122 | 126 |
123 int PreCreateThreadsImpl(); | 127 int PreCreateThreadsImpl(); |
124 int PreMainMessageLoopRunImpl(); | 128 int PreMainMessageLoopRunImpl(); |
125 | 129 |
126 // Members initialized on construction --------------------------------------- | 130 // Members initialized on construction --------------------------------------- |
127 | 131 |
128 const content::MainFunctionParams parameters_; | 132 const content::MainFunctionParams parameters_; |
129 const base::CommandLine& parsed_command_line_; | 133 const base::CommandLine& parsed_command_line_; |
130 int result_code_; | 134 int result_code_; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 198 |
195 // Members initialized in PreMainMessageLoopRun, needed in | 199 // Members initialized in PreMainMessageLoopRun, needed in |
196 // PreMainMessageLoopRunThreadsCreated. | 200 // PreMainMessageLoopRunThreadsCreated. |
197 PrefService* local_state_; | 201 PrefService* local_state_; |
198 base::FilePath user_data_dir_; | 202 base::FilePath user_data_dir_; |
199 | 203 |
200 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); | 204 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); |
201 }; | 205 }; |
202 | 206 |
203 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ | 207 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ |
OLD | NEW |