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/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 return media_stream_manager_.get(); | 94 return media_stream_manager_.get(); |
95 } | 95 } |
96 media::UserInputMonitor* user_input_monitor() const { | 96 media::UserInputMonitor* user_input_monitor() const { |
97 return user_input_monitor_.get(); | 97 return user_input_monitor_.get(); |
98 } | 98 } |
99 media::MidiManager* midi_manager() const { return midi_manager_.get(); } | 99 media::MidiManager* midi_manager() const { return midi_manager_.get(); } |
100 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } | 100 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } |
101 | 101 |
102 bool is_tracing_startup() const { return is_tracing_startup_; } | 102 bool is_tracing_startup() const { return is_tracing_startup_; } |
103 | 103 |
| 104 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 105 DeviceMonitorMac* device_monitor_mac() const { |
| 106 return device_monitor_mac_.get(); |
| 107 } |
| 108 #endif |
| 109 |
104 private: | 110 private: |
105 class MemoryObserver; | 111 class MemoryObserver; |
106 // For ShutdownThreadsAndCleanUp. | 112 // For ShutdownThreadsAndCleanUp. |
107 friend class BrowserShutdownImpl; | 113 friend class BrowserShutdownImpl; |
108 | 114 |
109 void InitializeMainThread(); | 115 void InitializeMainThread(); |
110 | 116 |
111 // Called just before creating the threads | 117 // Called just before creating the threads |
112 int PreCreateThreads(); | 118 int PreCreateThreads(); |
113 | 119 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_; | 186 scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_; |
181 | 187 |
182 bool is_tracing_startup_; | 188 bool is_tracing_startup_; |
183 | 189 |
184 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 190 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
185 }; | 191 }; |
186 | 192 |
187 } // namespace content | 193 } // namespace content |
188 | 194 |
189 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 195 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
OLD | NEW |