| OLD | NEW |
| 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 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
| 13 #include "ui/base/win/scoped_ole_initializer.h" | 13 #include "ui/base/win/scoped_ole_initializer.h" |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 class BrowserOnlineStateObserver; | 16 class BrowserOnlineStateObserver; |
| 17 class CommandLine; | 17 class CommandLine; |
| 18 class HighResolutionTimerManager; | 18 class HighResolutionTimerManager; |
| 19 class MessageLoop; | 19 class MessageLoop; |
| 20 class SystemMessageWindowWin; | 20 class SystemMessageWindowWin; |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class PowerStateManager; |
| 23 class SystemMonitor; | 24 class SystemMonitor; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace media { | 27 namespace media { |
| 27 class AudioManager; | 28 class AudioManager; |
| 28 } | 29 } |
| 29 | 30 |
| 30 namespace media_stream { | 31 namespace media_stream { |
| 31 class MediaStreamManager; | 32 class MediaStreamManager; |
| 32 } | 33 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 96 |
| 96 void MainMessageLoopRun(); | 97 void MainMessageLoopRun(); |
| 97 | 98 |
| 98 // Members initialized on construction --------------------------------------- | 99 // Members initialized on construction --------------------------------------- |
| 99 const content::MainFunctionParams& parameters_; | 100 const content::MainFunctionParams& parameters_; |
| 100 const CommandLine& parsed_command_line_; | 101 const CommandLine& parsed_command_line_; |
| 101 int result_code_; | 102 int result_code_; |
| 102 | 103 |
| 103 // Members initialized in |MainMessageLoopStart()| --------------------------- | 104 // Members initialized in |MainMessageLoopStart()| --------------------------- |
| 104 scoped_ptr<MessageLoop> main_message_loop_; | 105 scoped_ptr<MessageLoop> main_message_loop_; |
| 106 scoped_ptr<base::PowerStateManager> power_state_manager_; |
| 105 scoped_ptr<base::SystemMonitor> system_monitor_; | 107 scoped_ptr<base::SystemMonitor> system_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_; |
| 109 scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_; | 111 scoped_ptr<media_stream::MediaStreamManager> media_stream_manager_; |
| 110 // Per-process listener for online state changes. | 112 // Per-process listener for online state changes. |
| 111 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; | 113 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; |
| 112 #if defined(OS_WIN) | 114 #if defined(OS_WIN) |
| 113 scoped_ptr<SystemMessageWindowWin> system_message_window_; | 115 scoped_ptr<SystemMessageWindowWin> system_message_window_; |
| 114 #elif defined(OS_LINUX) | 116 #elif defined(OS_LINUX) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 143 #if defined(OS_WIN) | 145 #if defined(OS_WIN) |
| 144 ui::ScopedOleInitializer ole_initializer_; | 146 ui::ScopedOleInitializer ole_initializer_; |
| 145 #endif | 147 #endif |
| 146 | 148 |
| 147 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 149 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 } // namespace content | 152 } // namespace content |
| 151 | 153 |
| 152 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 154 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |