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

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

Issue 7042003: Revert 85732 (broke build) - Move SystemMonitor to base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
« no previous file with comments | « base/system_monitor/system_monitor_win.cc ('k') | chrome/browser/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_MAIN_H_ 5 #ifndef CHROME_BROWSER_BROWSER_MAIN_H_
6 #define CHROME_BROWSER_BROWSER_MAIN_H_ 6 #define CHROME_BROWSER_BROWSER_MAIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
12 #include "base/tracked_objects.h" 12 #include "base/tracked_objects.h"
13 13
14 class BrowserThread; 14 class BrowserThread;
15 class CommandLine; 15 class CommandLine;
16 class FieldTrialSynchronizer; 16 class FieldTrialSynchronizer;
17 class HighResolutionTimerManager; 17 class HighResolutionTimerManager;
18 struct MainFunctionParams; 18 struct MainFunctionParams;
19 class MessageLoop; 19 class MessageLoop;
20 class MetricsService; 20 class MetricsService;
21 class PrefService; 21 class PrefService;
22 22
23 namespace base {
24 class SystemMonitor;
25 }
26
27 namespace net { 23 namespace net {
28 class NetworkChangeNotifier; 24 class NetworkChangeNotifier;
29 } 25 }
30 26
27 namespace ui {
28 class SystemMonitor;
29 }
30
31 // BrowserMainParts: 31 // BrowserMainParts:
32 // This class contains different "stages" to be executed in |BrowserMain()|, 32 // This class contains different "stages" to be executed in |BrowserMain()|,
33 // mostly initialization. This is made into a class rather than just functions 33 // mostly initialization. This is made into a class rather than just functions
34 // so each stage can create and maintain state. Each part is represented by a 34 // so each stage can create and maintain state. Each part is represented by a
35 // single method (e.g., "EarlyInitialization()"), which does the following: 35 // single method (e.g., "EarlyInitialization()"), which does the following:
36 // - calls a method (e.g., "PreEarlyInitialization()") which individual 36 // - calls a method (e.g., "PreEarlyInitialization()") which individual
37 // platforms can override to provide platform-specific code which is to be 37 // platforms can override to provide platform-specific code which is to be
38 // executed before the common code; 38 // executed before the common code;
39 // - calls various methods for things common to all platforms (for that given 39 // - calls various methods for things common to all platforms (for that given
40 // stage); and 40 // stage); and
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // destroyed after the main_message_loop. 159 // destroyed after the main_message_loop.
160 tracked_objects::AutoTracking tracking_objects_; 160 tracked_objects::AutoTracking tracking_objects_;
161 #endif 161 #endif
162 162
163 // Statistical testing infrastructure for the entire browser. NULL until 163 // Statistical testing infrastructure for the entire browser. NULL until
164 // SetupMetricsAndFieldTrials is called. 164 // SetupMetricsAndFieldTrials is called.
165 scoped_ptr<base::FieldTrialList> field_trial_list_; 165 scoped_ptr<base::FieldTrialList> field_trial_list_;
166 166
167 // Members initialized in |MainMessageLoopStart()| --------------------------- 167 // Members initialized in |MainMessageLoopStart()| ---------------------------
168 scoped_ptr<MessageLoop> main_message_loop_; 168 scoped_ptr<MessageLoop> main_message_loop_;
169 scoped_ptr<base::SystemMonitor> system_monitor_; 169 scoped_ptr<ui::SystemMonitor> system_monitor_;
170 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_; 170 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_;
171 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; 171 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_;
172 scoped_ptr<BrowserThread> main_thread_; 172 scoped_ptr<BrowserThread> main_thread_;
173 173
174 // Initialized in SetupMetricsAndFieldTrials. 174 // Initialized in SetupMetricsAndFieldTrials.
175 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_; 175 scoped_refptr<FieldTrialSynchronizer> field_trial_synchronizer_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(BrowserMainParts); 177 DISALLOW_COPY_AND_ASSIGN(BrowserMainParts);
178 }; 178 };
179 179
(...skipping 10 matching lines...) Expand all
190 190
191 // Displays a warning message if some minimum level of OS support is not 191 // Displays a warning message if some minimum level of OS support is not
192 // present on the current platform. 192 // present on the current platform.
193 void WarnAboutMinimumSystemRequirements(); 193 void WarnAboutMinimumSystemRequirements();
194 194
195 // Records the time from our process' startup to the present time in 195 // Records the time from our process' startup to the present time in
196 // the UMA histogram |metric_name|. 196 // the UMA histogram |metric_name|.
197 void RecordBrowserStartupTime(); 197 void RecordBrowserStartupTime();
198 198
199 #endif // CHROME_BROWSER_BROWSER_MAIN_H_ 199 #endif // CHROME_BROWSER_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « base/system_monitor/system_monitor_win.cc ('k') | chrome/browser/browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698