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

Side by Side Diff: content/browser/browser_main_loop.h

Issue 1871253002: aura: Require explicit ownership of the Env instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot.merge Created 4 years, 8 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 | « chromecast/browser/cast_browser_main_parts.cc ('k') | content/browser/browser_main_loop.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 CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "content/browser/browser_process_sub_thread.h" 15 #include "content/browser/browser_process_sub_thread.h"
16 #include "content/public/browser/browser_main_runner.h" 16 #include "content/public/browser/browser_main_runner.h"
17 17
18 #if defined(USE_AURA)
19 namespace aura {
20 class Env;
21 }
22 #endif
23
18 namespace base { 24 namespace base {
19 class CommandLine; 25 class CommandLine;
20 class FilePath; 26 class FilePath;
21 class HighResolutionTimerManager; 27 class HighResolutionTimerManager;
22 class MessageLoop; 28 class MessageLoop;
23 class PowerMonitor; 29 class PowerMonitor;
24 class SystemMonitor; 30 class SystemMonitor;
25 class MemoryPressureMonitor; 31 class MemoryPressureMonitor;
26 namespace trace_event { 32 namespace trace_event {
27 class TraceEventSystemStatsMonitor; 33 class TraceEventSystemStatsMonitor;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 std::unique_ptr<base::PowerMonitor> power_monitor_; 201 std::unique_ptr<base::PowerMonitor> power_monitor_;
196 std::unique_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; 202 std::unique_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_;
197 std::unique_ptr<net::NetworkChangeNotifier> network_change_notifier_; 203 std::unique_ptr<net::NetworkChangeNotifier> network_change_notifier_;
198 204
199 // Per-process listener for online state changes. 205 // Per-process listener for online state changes.
200 std::unique_ptr<BrowserOnlineStateObserver> online_state_observer_; 206 std::unique_ptr<BrowserOnlineStateObserver> online_state_observer_;
201 207
202 std::unique_ptr<base::trace_event::TraceEventSystemStatsMonitor> 208 std::unique_ptr<base::trace_event::TraceEventSystemStatsMonitor>
203 system_stats_monitor_; 209 system_stats_monitor_;
204 210
211 #if defined(USE_AURA)
212 std::unique_ptr<aura::Env> env_;
213 #endif
214
205 #if defined(OS_WIN) 215 #if defined(OS_WIN)
206 std::unique_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; 216 std::unique_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
207 #endif 217 #endif
208 218
209 #if defined(OS_ANDROID) 219 #if defined(OS_ANDROID)
210 // Android implementation of ScreenOrientationDelegate 220 // Android implementation of ScreenOrientationDelegate
211 std::unique_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; 221 std::unique_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
212 #endif 222 #endif
213 223
214 std::unique_ptr<MemoryObserver> memory_observer_; 224 std::unique_ptr<MemoryObserver> memory_observer_;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 std::unique_ptr<TimeZoneMonitor> time_zone_monitor_; 281 std::unique_ptr<TimeZoneMonitor> time_zone_monitor_;
272 282
273 // DO NOT add members here. Add them to the right categories above. 283 // DO NOT add members here. Add them to the right categories above.
274 284
275 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 285 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
276 }; 286 };
277 287
278 } // namespace content 288 } // namespace content
279 289
280 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 290 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698