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

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

Issue 2716593006: Remove PowerUsageMonitor. (Closed)
Patch Set: Adjust comment Created 3 years, 9 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/metrics/field_trial.h" 12 #include "base/metrics/field_trial.h"
13 #include "base/profiler/stack_sampling_profiler.h" 13 #include "base/profiler/stack_sampling_profiler.h"
14 #include "base/tracked_objects.h" 14 #include "base/tracked_objects.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/browser/chrome_browser_field_trials.h" 16 #include "chrome/browser/chrome_browser_field_trials.h"
17 #include "chrome/browser/chrome_process_singleton.h" 17 #include "chrome/browser/chrome_process_singleton.h"
18 #include "chrome/browser/first_run/first_run.h" 18 #include "chrome/browser/first_run/first_run.h"
19 #include "chrome/browser/power_usage_monitor/power_usage_monitor.h"
20 #include "chrome/browser/process_singleton.h" 19 #include "chrome/browser/process_singleton.h"
21 #include "chrome/browser/ui/startup/startup_browser_creator.h" 20 #include "chrome/browser/ui/startup/startup_browser_creator.h"
22 #include "chrome/common/stack_sampling_configuration.h" 21 #include "chrome/common/stack_sampling_configuration.h"
23 #include "content/public/browser/browser_main_parts.h" 22 #include "content/public/browser/browser_main_parts.h"
24 #include "content/public/common/main_function_params.h" 23 #include "content/public/common/main_function_params.h"
25 24
26 class BrowserProcessImpl; 25 class BrowserProcessImpl;
27 class ChromeBrowserMainExtraParts; 26 class ChromeBrowserMainExtraParts;
28 class FieldTrialSynchronizer; 27 class FieldTrialSynchronizer;
29 class PrefService; 28 class PrefService;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 scoped_refptr<metrics::TrackingSynchronizer> tracking_synchronizer_; 163 scoped_refptr<metrics::TrackingSynchronizer> tracking_synchronizer_;
165 164
166 #if !defined(OS_ANDROID) 165 #if !defined(OS_ANDROID)
167 // Browser creation happens on the Java side in Android. 166 // Browser creation happens on the Java side in Android.
168 std::unique_ptr<StartupBrowserCreator> browser_creator_; 167 std::unique_ptr<StartupBrowserCreator> browser_creator_;
169 168
170 // Android doesn't support multiple browser processes, so it doesn't implement 169 // Android doesn't support multiple browser processes, so it doesn't implement
171 // ProcessSingleton. 170 // ProcessSingleton.
172 std::unique_ptr<ChromeProcessSingleton> process_singleton_; 171 std::unique_ptr<ChromeProcessSingleton> process_singleton_;
173 172
174 #if !defined(OS_LINUX) || defined(OS_CHROMEOS) // http://crbug.com/426393
175 std::unique_ptr<PowerUsageMonitor> power_usage_monitor_;
176 #endif // !defined(OS_LINUX) || defined(OS_CHROMEOS)
177
178 // Android's first run is done in Java instead of native. 173 // Android's first run is done in Java instead of native.
179 std::unique_ptr<first_run::MasterPrefs> master_prefs_; 174 std::unique_ptr<first_run::MasterPrefs> master_prefs_;
180 175
181 ProcessSingleton::NotifyResult notify_result_ = 176 ProcessSingleton::NotifyResult notify_result_ =
182 ProcessSingleton::PROCESS_NONE; 177 ProcessSingleton::PROCESS_NONE;
183 178
184 // Members needed across shutdown methods. 179 // Members needed across shutdown methods.
185 bool restart_last_session_ = false; 180 bool restart_last_session_ = false;
186 #endif 181 #endif
187 182
188 Profile* profile_; 183 Profile* profile_;
189 bool run_message_loop_; 184 bool run_message_loop_;
190 std::unique_ptr<ThreeDAPIObserver> three_d_observer_; 185 std::unique_ptr<ThreeDAPIObserver> three_d_observer_;
191 186
192 // Initialized in |SetupFieldTrials()|. 187 // Initialized in |SetupFieldTrials()|.
193 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; 188 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_;
194 189
195 // Members initialized in PreMainMessageLoopRun, needed in 190 // Members initialized in PreMainMessageLoopRun, needed in
196 // PreMainMessageLoopRunThreadsCreated. 191 // PreMainMessageLoopRunThreadsCreated.
197 PrefService* local_state_; 192 PrefService* local_state_;
198 base::FilePath user_data_dir_; 193 base::FilePath user_data_dir_;
199 194
200 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts); 195 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainParts);
201 }; 196 };
202 197
203 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 198 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698