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

Unified Diff: content/browser/browser_main_loop.h

Issue 9433006: Remove GetAudioManager and GetMediaStreamManager from ResourceContext. The reason is the content mo… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.h
===================================================================
--- content/browser/browser_main_loop.h (revision 123165)
+++ content/browser/browser_main_loop.h (working copy)
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/browser/browser_process_sub_thread.h"
+class AudioManager;
class CommandLine;
class HighResolutionTimerManager;
class MessageLoop;
@@ -34,6 +35,7 @@
// Implements the main browser loop stages called from |BrowserMain()|.
// See comments in browser_main_parts.h for additional info.
+// All functions are to be called only on the UI thread unless otherwise noted.
class BrowserMainLoop {
public:
explicit BrowserMainLoop(const content::MainFunctionParams& parameters);
@@ -57,6 +59,9 @@
int GetResultCode() const { return result_code_; }
+ // Can be called on any thread.
+ static AudioManager* GetAudioManager();
+
private:
// For ShutdownThreadsAndCleanUp.
friend class BrowserShutdownImpl;
@@ -78,6 +83,7 @@
scoped_ptr<base::SystemMonitor> system_monitor_;
scoped_ptr<HighResolutionTimerManager> hi_res_timer_manager_;
scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_;
+ scoped_ptr<AudioManager> audio_manager_;
#if defined(OS_WIN)
scoped_ptr<SystemMessageWindowWin> system_message_window_;
#endif
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698