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

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

Issue 17288018: Re-land 16025005 with fix for statics perf issue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « content/browser/DEPS ('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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/browser/browser_process_sub_thread.h" 10 #include "content/browser/browser_process_sub_thread.h"
11 11
12 class CommandLine; 12 class CommandLine;
13 class HighResolutionTimerManager; 13 class HighResolutionTimerManager;
14 14
15 namespace base { 15 namespace base {
16 class MessageLoop; 16 class MessageLoop;
17 class PowerMonitor; 17 class PowerMonitor;
18 class SystemMonitor; 18 class SystemMonitor;
19 } 19 }
20 20
21 namespace media { 21 namespace media {
22 class AudioManager; 22 class AudioManager;
23 class MIDIManager;
23 } 24 }
24 25
25 namespace net { 26 namespace net {
26 class NetworkChangeNotifier; 27 class NetworkChangeNotifier;
27 } 28 }
28 29
29 namespace content { 30 namespace content {
30 class AudioMirroringManager; 31 class AudioMirroringManager;
31 class BrowserMainParts; 32 class BrowserMainParts;
32 class BrowserOnlineStateObserver; 33 class BrowserOnlineStateObserver;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 75
75 int GetResultCode() const { return result_code_; } 76 int GetResultCode() const { return result_code_; }
76 77
77 media::AudioManager* audio_manager() const { return audio_manager_.get(); } 78 media::AudioManager* audio_manager() const { return audio_manager_.get(); }
78 AudioMirroringManager* audio_mirroring_manager() const { 79 AudioMirroringManager* audio_mirroring_manager() const {
79 return audio_mirroring_manager_.get(); 80 return audio_mirroring_manager_.get();
80 } 81 }
81 MediaStreamManager* media_stream_manager() const { 82 MediaStreamManager* media_stream_manager() const {
82 return media_stream_manager_.get(); 83 return media_stream_manager_.get();
83 } 84 }
85 media::MIDIManager* midi_manager() const { return midi_manager_.get(); }
84 86
85 private: 87 private:
86 class MemoryObserver; 88 class MemoryObserver;
87 // For ShutdownThreadsAndCleanUp. 89 // For ShutdownThreadsAndCleanUp.
88 friend class BrowserShutdownImpl; 90 friend class BrowserShutdownImpl;
89 91
90 void InitializeMainThread(); 92 void InitializeMainThread();
91 93
92 // Called right after the browser threads have been started. 94 // Called right after the browser threads have been started.
93 void BrowserThreadsStarted(); 95 void BrowserThreadsStarted();
94 96
95 void MainMessageLoopRun(); 97 void MainMessageLoopRun();
96 98
97 // Members initialized on construction --------------------------------------- 99 // Members initialized on construction ---------------------------------------
98 const MainFunctionParams& parameters_; 100 const MainFunctionParams& parameters_;
99 const CommandLine& parsed_command_line_; 101 const CommandLine& parsed_command_line_;
100 int result_code_; 102 int result_code_;
101 103
102 // Members initialized in |MainMessageLoopStart()| --------------------------- 104 // Members initialized in |MainMessageLoopStart()| ---------------------------
103 scoped_ptr<base::MessageLoop> main_message_loop_; 105 scoped_ptr<base::MessageLoop> main_message_loop_;
104 scoped_ptr<base::SystemMonitor> system_monitor_; 106 scoped_ptr<base::SystemMonitor> system_monitor_;
105 scoped_ptr<base::PowerMonitor> power_monitor_; 107 scoped_ptr<base::PowerMonitor> power_monitor_;
106 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_; 108 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_;
107 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; 109 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_;
108 scoped_ptr<media::AudioManager> audio_manager_; 110 scoped_ptr<media::AudioManager> audio_manager_;
111 scoped_ptr<media::MIDIManager> midi_manager_;
109 scoped_ptr<AudioMirroringManager> audio_mirroring_manager_; 112 scoped_ptr<AudioMirroringManager> audio_mirroring_manager_;
110 scoped_ptr<MediaStreamManager> media_stream_manager_; 113 scoped_ptr<MediaStreamManager> media_stream_manager_;
111 // Per-process listener for online state changes. 114 // Per-process listener for online state changes.
112 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; 115 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_;
113 #if defined(OS_WIN) 116 #if defined(OS_WIN)
114 scoped_ptr<SystemMessageWindowWin> system_message_window_; 117 scoped_ptr<SystemMessageWindowWin> system_message_window_;
115 #elif defined(OS_LINUX) 118 #elif defined(OS_LINUX)
116 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_; 119 scoped_ptr<DeviceMonitorLinux> device_monitor_linux_;
117 #elif defined(OS_MACOSX) && !defined(OS_IOS) 120 #elif defined(OS_MACOSX) && !defined(OS_IOS)
118 scoped_ptr<DeviceMonitorMac> device_monitor_mac_; 121 scoped_ptr<DeviceMonitorMac> device_monitor_mac_;
(...skipping 22 matching lines...) Expand all
141 scoped_ptr<BrowserProcessSubThread> cache_thread_; 144 scoped_ptr<BrowserProcessSubThread> cache_thread_;
142 scoped_ptr<BrowserProcessSubThread> io_thread_; 145 scoped_ptr<BrowserProcessSubThread> io_thread_;
143 scoped_ptr<MemoryObserver> memory_observer_; 146 scoped_ptr<MemoryObserver> memory_observer_;
144 147
145 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 148 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
146 }; 149 };
147 150
148 } // namespace content 151 } // namespace content
149 152
150 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 153 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698