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

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

Issue 2077983003: Intiialize AudioManager and related class lazily (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 <memory> 8 #include <memory>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // Perform the default message loop run logic. 116 // Perform the default message loop run logic.
117 void RunMainMessageLoopParts(); 117 void RunMainMessageLoopParts();
118 118
119 // Performs the shutdown sequence, starting with PostMainMessageLoopRun 119 // Performs the shutdown sequence, starting with PostMainMessageLoopRun
120 // through stopping threads to PostDestroyThreads. 120 // through stopping threads to PostDestroyThreads.
121 void ShutdownThreadsAndCleanUp(); 121 void ShutdownThreadsAndCleanUp();
122 122
123 int GetResultCode() const { return result_code_; } 123 int GetResultCode() const { return result_code_; }
124 124
125 media::AudioManager* audio_manager() const { return audio_manager_.get(); } 125 media::AudioManager* GetAudioManager();
126 MediaStreamManager* media_stream_manager() const { 126 MediaStreamManager* GetMediaStreamManager();
127 return media_stream_manager_.get(); 127 void InitializeSpeechRecognitionManager();
128 } 128
129 media::UserInputMonitor* user_input_monitor() const { 129 media::UserInputMonitor* user_input_monitor() const {
130 return user_input_monitor_.get(); 130 return user_input_monitor_.get();
131 } 131 }
132 media::midi::MidiManager* midi_manager() const { return midi_manager_.get(); } 132 media::midi::MidiManager* midi_manager() const { return midi_manager_.get(); }
133 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); } 133 base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); }
134 134
135 bool is_tracing_startup_for_duration() const { 135 bool is_tracing_startup_for_duration() const {
136 return is_tracing_startup_for_duration_; 136 return is_tracing_startup_for_duration_;
137 } 137 }
138 138
(...skipping 25 matching lines...) Expand all
164 164
165 int PreMainMessageLoopRun(); 165 int PreMainMessageLoopRun();
166 166
167 void MainMessageLoopRun(); 167 void MainMessageLoopRun();
168 168
169 base::FilePath GetStartupTraceFileName( 169 base::FilePath GetStartupTraceFileName(
170 const base::CommandLine& command_line) const; 170 const base::CommandLine& command_line) const;
171 void InitStartupTracingForDuration(const base::CommandLine& command_line); 171 void InitStartupTracingForDuration(const base::CommandLine& command_line);
172 void EndStartupTracing(); 172 void EndStartupTracing();
173 173
174 void CreateAudioManager();
175 bool UsingInProcessGpu() const; 174 bool UsingInProcessGpu() const;
176 175
177 // Quick reference for initialization order: 176 // Quick reference for initialization order:
178 // Constructor 177 // Constructor
179 // Init() 178 // Init()
180 // EarlyInitialization() 179 // EarlyInitialization()
181 // InitializeToolkit() 180 // InitializeToolkit()
182 // PreMainMessageLoopStart() 181 // PreMainMessageLoopStart()
183 // MainMessageLoopStart() 182 // MainMessageLoopStart()
184 // InitializeMainThread() 183 // InitializeMainThread()
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 std::unique_ptr<TimeZoneMonitor> time_zone_monitor_; 286 std::unique_ptr<TimeZoneMonitor> time_zone_monitor_;
288 287
289 // DO NOT add members here. Add them to the right categories above. 288 // DO NOT add members here. Add them to the right categories above.
290 289
291 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 290 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
292 }; 291 };
293 292
294 } // namespace content 293 } // namespace content
295 294
296 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 295 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | content/browser/browser_main_loop.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698