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

Unified Diff: content/browser/speech/speech_recognition_manager_impl.h

Issue 17508005: Minor cleanup to remove the static thread-safe methods on BrowserMainLoop. Initially I thought this… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: revert PostTask change Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/speech_recognition_manager_impl.h
===================================================================
--- content/browser/speech/speech_recognition_manager_impl.h (revision 207505)
+++ content/browser/speech/speech_recognition_manager_impl.h (working copy)
@@ -19,8 +19,13 @@
#include "content/public/browser/speech_recognition_session_context.h"
#include "content/public/common/speech_recognition_error.h"
+namespace media {
+class AudioManager;
+}
+
namespace content {
class BrowserMainLoop;
+class MediaStreamManager;
class MediaStreamUIProxy;
class SpeechRecognitionManagerDelegate;
class SpeechRecognizer;
@@ -93,7 +98,8 @@
friend class BrowserMainLoop;
// Needed for dtor.
friend struct base::DefaultDeleter<SpeechRecognitionManagerImpl>;
- SpeechRecognitionManagerImpl();
+ SpeechRecognitionManagerImpl(media::AudioManager* audio_manager,
+ MediaStreamManager* media_stream_manager);
virtual ~SpeechRecognitionManagerImpl();
private:
@@ -165,6 +171,8 @@
SpeechRecognitionEventListener* GetDelegateListener() const;
int GetNextSessionID();
+ media::AudioManager* audio_manager_;
+ MediaStreamManager* media_stream_manager_;
typedef std::map<int, Session*> SessionsTable;
SessionsTable sessions_;
int primary_session_id_;
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/speech/speech_recognition_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698