| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 return media_stream_manager_.get(); | 144 return media_stream_manager_.get(); |
| 145 } | 145 } |
| 146 media::UserInputMonitor* user_input_monitor() const { | 146 media::UserInputMonitor* user_input_monitor() const { |
| 147 return user_input_monitor_.get(); | 147 return user_input_monitor_.get(); |
| 148 } | 148 } |
| 149 discardable_memory::DiscardableSharedMemoryManager* | 149 discardable_memory::DiscardableSharedMemoryManager* |
| 150 discardable_shared_memory_manager() const { | 150 discardable_shared_memory_manager() const { |
| 151 return discardable_shared_memory_manager_.get(); | 151 return discardable_shared_memory_manager_.get(); |
| 152 } | 152 } |
| 153 midi::MidiService* midi_service() const { return midi_service_.get(); } | 153 midi::MidiService* midi_service() const { return midi_service_.get(); } |
| 154 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } | |
| 155 | 154 |
| 156 bool is_tracing_startup_for_duration() const { | 155 bool is_tracing_startup_for_duration() const { |
| 157 return is_tracing_startup_for_duration_; | 156 return is_tracing_startup_for_duration_; |
| 158 } | 157 } |
| 159 | 158 |
| 160 const base::FilePath& startup_trace_file() const { | 159 const base::FilePath& startup_trace_file() const { |
| 161 return startup_trace_file_; | 160 return startup_trace_file_; |
| 162 } | 161 } |
| 163 | 162 |
| 164 void StopStartupTracingTimer(); | 163 void StopStartupTracingTimer(); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // redirection to TaskScheduler is enabled. (ref. | 274 // redirection to TaskScheduler is enabled. (ref. |
| 276 // ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler()). | 275 // ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler()). |
| 277 std::unique_ptr<BrowserProcessSubThread> db_thread_; | 276 std::unique_ptr<BrowserProcessSubThread> db_thread_; |
| 278 std::unique_ptr<BrowserProcessSubThread> file_user_blocking_thread_; | 277 std::unique_ptr<BrowserProcessSubThread> file_user_blocking_thread_; |
| 279 std::unique_ptr<BrowserProcessSubThread> file_thread_; | 278 std::unique_ptr<BrowserProcessSubThread> file_thread_; |
| 280 std::unique_ptr<BrowserProcessSubThread> process_launcher_thread_; | 279 std::unique_ptr<BrowserProcessSubThread> process_launcher_thread_; |
| 281 std::unique_ptr<BrowserProcessSubThread> cache_thread_; | 280 std::unique_ptr<BrowserProcessSubThread> cache_thread_; |
| 282 std::unique_ptr<BrowserProcessSubThread> io_thread_; | 281 std::unique_ptr<BrowserProcessSubThread> io_thread_; |
| 283 | 282 |
| 284 // Members initialized in |BrowserThreadsStarted()| -------------------------- | 283 // Members initialized in |BrowserThreadsStarted()| -------------------------- |
| 285 std::unique_ptr<base::Thread> indexed_db_thread_; | |
| 286 std::unique_ptr<ServiceManagerContext> service_manager_context_; | 284 std::unique_ptr<ServiceManagerContext> service_manager_context_; |
| 287 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; | 285 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; |
| 288 | 286 |
| 289 // |user_input_monitor_| has to outlive |audio_manager_|, so declared first. | 287 // |user_input_monitor_| has to outlive |audio_manager_|, so declared first. |
| 290 std::unique_ptr<media::UserInputMonitor> user_input_monitor_; | 288 std::unique_ptr<media::UserInputMonitor> user_input_monitor_; |
| 291 std::unique_ptr<media::AudioManager> audio_manager_; | 289 std::unique_ptr<media::AudioManager> audio_manager_; |
| 292 // Calls to |audio_system_| must not be posted to the audio thread if it | 290 // Calls to |audio_system_| must not be posted to the audio thread if it |
| 293 // differs from the UI one. See http://crbug.com/705455. | 291 // differs from the UI one. See http://crbug.com/705455. |
| 294 std::unique_ptr<media::AudioSystem> audio_system_; | 292 std::unique_ptr<media::AudioSystem> audio_system_; |
| 295 | 293 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 319 memory_instrumentation_coordinator_; | 317 memory_instrumentation_coordinator_; |
| 320 | 318 |
| 321 // DO NOT add members here. Add them to the right categories above. | 319 // DO NOT add members here. Add them to the right categories above. |
| 322 | 320 |
| 323 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); | 321 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); |
| 324 }; | 322 }; |
| 325 | 323 |
| 326 } // namespace content | 324 } // namespace content |
| 327 | 325 |
| 328 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ | 326 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ |
| OLD | NEW |