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

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

Issue 1473693002: Activating code to start Chrome UI in Android Aura Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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/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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 StackSamplingConfiguration sampling_profiler_config_; 157 StackSamplingConfiguration sampling_profiler_config_;
158 158
159 // A profiler that periodically samples stack traces. Used to sample startup 159 // A profiler that periodically samples stack traces. Used to sample startup
160 // behavior. 160 // behavior.
161 base::StackSamplingProfiler sampling_profiler_; 161 base::StackSamplingProfiler sampling_profiler_;
162 162
163 // Members initialized after / released before main_message_loop_ ------------ 163 // Members initialized after / released before main_message_loop_ ------------
164 164
165 scoped_ptr<BrowserProcessImpl> browser_process_; 165 scoped_ptr<BrowserProcessImpl> browser_process_;
166 scoped_refptr<metrics::TrackingSynchronizer> tracking_synchronizer_; 166 scoped_refptr<metrics::TrackingSynchronizer> tracking_synchronizer_;
167 #if !defined(OS_ANDROID) 167
168 // TODO(bshe): Use !defined(ANDROID_JAVA_UI) once
169 // codereview.chromium.org/1459793002 landed.
170 #if !defined(OS_ANDROID) || defined(USE_AURA)
168 // Browser creation happens on the Java side in Android. 171 // Browser creation happens on the Java side in Android.
169 scoped_ptr<StartupBrowserCreator> browser_creator_; 172 scoped_ptr<StartupBrowserCreator> browser_creator_;
170 173
171 // Android doesn't support multiple browser processes, so it doesn't implement 174 // Android doesn't support multiple browser processes, so it doesn't implement
172 // ProcessSingleton. 175 // ProcessSingleton.
173 scoped_ptr<ChromeProcessSingleton> process_singleton_; 176 scoped_ptr<ChromeProcessSingleton> process_singleton_;
174 177
175 // Android's first run is done in Java instead of native. 178 // Android's first run is done in Java instead of native.
176 scoped_ptr<first_run::MasterPrefs> master_prefs_; 179 scoped_ptr<first_run::MasterPrefs> master_prefs_;
177 #endif 180 #endif // !defined(OS_ANDROID) || defined(USE_AURA)
178 Profile* profile_; 181 Profile* profile_;
179 bool run_message_loop_; 182 bool run_message_loop_;
180 ProcessSingleton::NotifyResult notify_result_; 183 ProcessSingleton::NotifyResult notify_result_;
181 scoped_ptr<ThreeDAPIObserver> three_d_observer_; 184 scoped_ptr<ThreeDAPIObserver> three_d_observer_;
182 185
183 // Initialized in SetupMetricsAndFieldTrials. 186 // Initialized in SetupMetricsAndFieldTrials.
184 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; 187 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_;
185 188
186 // Members initialized in PreMainMessageLoopRun, needed in 189 // Members initialized in PreMainMessageLoopRun, needed in
187 // PreMainMessageLoopRunThreadsCreated. 190 // PreMainMessageLoopRunThreadsCreated.
188 PrefService* local_state_; 191 PrefService* local_state_;
189 base::FilePath user_data_dir_; 192 base::FilePath user_data_dir_;
190 193
191 // Members needed across shutdown methods. 194 // Members needed across shutdown methods.
192 bool restart_last_session_; 195 bool restart_last_session_;
193 196
194 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 197 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
195 }; 198 };
196 199
197 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 200 #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