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

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

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate overriden methods in profile_impl.h Created 9 years, 3 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_input_dispatcher_host.h
diff --git a/content/browser/speech/speech_input_dispatcher_host.h b/content/browser/speech/speech_input_dispatcher_host.h
index a56660f6d69dc89c4b370780e524ae831ecf6632..4642bcbf26f871d3ba5aeabd21407c7024945f73 100644
--- a/content/browser/speech/speech_input_dispatcher_host.h
+++ b/content/browser/speech/speech_input_dispatcher_host.h
@@ -8,6 +8,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/browser/browser_message_filter.h"
#include "content/browser/speech/speech_input_manager.h"
+#include "net/url_request/url_request_context_getter.h"
struct SpeechInputHostMsg_StartRecognition_Params;
@@ -21,7 +22,10 @@ class SpeechInputDispatcherHost : public BrowserMessageFilter,
public:
class SpeechInputCallers;
- explicit SpeechInputDispatcherHost(int render_process_id);
+ SpeechInputDispatcherHost(
+ int render_process_id,
+ net::URLRequestContextGetter* context_getter,
+ SpeechInputPreferences* speech_input_preferences);
// SpeechInputManager::Delegate methods.
virtual void SetRecognitionResult(int caller_id,
@@ -53,6 +57,9 @@ class SpeechInputDispatcherHost : public BrowserMessageFilter,
int render_process_id_;
bool may_have_pending_requests_; // Set if we received any speech IPC request
+ scoped_refptr<net::URLRequestContextGetter> context_getter_;
+ scoped_refptr<SpeechInputPreferences> speech_input_preferences_;
+
static SpeechInputManager* manager_;
DISALLOW_COPY_AND_ASSIGN(SpeechInputDispatcherHost);
« no previous file with comments | « content/browser/speech/speech_input_browsertest.cc ('k') | content/browser/speech/speech_input_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698