OLD | NEW |
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 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 | 13 |
14 class CommandLine; | 14 class CommandLine; |
15 class HighResolutionTimerManager; | 15 class HighResolutionTimerManager; |
16 class MessageLoop; | 16 class MessageLoop; |
17 class SystemMessageWindowWin; | |
18 | 17 |
19 namespace base { | 18 namespace base { |
20 class SystemMonitor; | 19 class SystemMonitor; |
21 } | 20 } |
22 | 21 |
23 namespace net { | 22 namespace net { |
24 class NetworkChangeNotifier; | 23 class NetworkChangeNotifier; |
25 } | 24 } |
26 | 25 |
27 namespace content { | 26 namespace content { |
(...skipping 30 matching lines...) Expand all Loading... |
58 // Vector of BrowserMainParts set by CreateBrowserMainParts ------------------ | 57 // Vector of BrowserMainParts set by CreateBrowserMainParts ------------------ |
59 // The BrowserParts fucntions for each part are called in the order added. | 58 // The BrowserParts fucntions for each part are called in the order added. |
60 // They are released (destroyed) in the reverse order. | 59 // They are released (destroyed) in the reverse order. |
61 std::vector<BrowserMainParts*> parts_list_; | 60 std::vector<BrowserMainParts*> parts_list_; |
62 | 61 |
63 // Members initialized in |MainMessageLoopStart()| --------------------------- | 62 // Members initialized in |MainMessageLoopStart()| --------------------------- |
64 scoped_ptr<MessageLoop> main_message_loop_; | 63 scoped_ptr<MessageLoop> main_message_loop_; |
65 scoped_ptr<base::SystemMonitor> system_monitor_; | 64 scoped_ptr<base::SystemMonitor> system_monitor_; |
66 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_; | 65 scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_; |
67 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; | 66 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; |
68 #if defined(OS_WIN) | |
69 scoped_ptr<SystemMessageWindowWin> system_message_window_; | |
70 #endif | |
71 scoped_ptr<BrowserThreadImpl> main_thread_; | 67 scoped_ptr<BrowserThreadImpl> main_thread_; |
72 | 68 |
73 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 69 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
74 }; | 70 }; |
75 | 71 |
76 } // namespace content | 72 } // namespace content |
77 | 73 |
78 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 74 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
OLD | NEW |