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

Unified Diff: chrome/browser/speech/speech_input_extension_manager.h

Issue 9387023: Revert 121810 - Move SpeechRecognizer delegate into its own header file and put it in the content... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
Index: chrome/browser/speech/speech_input_extension_manager.h
===================================================================
--- chrome/browser/speech/speech_input_extension_manager.h (revision 121818)
+++ chrome/browser/speech/speech_input_extension_manager.h (working copy)
@@ -6,14 +6,10 @@
#define CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_MANAGER_H_
#pragma once
-#include <string>
-
-#include "base/callback_forward.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
+#include "content/browser/speech/speech_recognizer.h"
#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/speech_recognizer_delegate.h"
+#include <string>
class Extension;
class Profile;
@@ -28,10 +24,6 @@
class URLRequestContextGetter;
}
-namespace speech_input {
-class SpeechRecognizer;
-}
-
// Used for API tests.
class SpeechInputExtensionInterface {
public:
@@ -40,7 +32,7 @@
// Called from the IO thread.
virtual void StartRecording(
- content::SpeechRecognizerDelegate* delegate,
+ speech_input::SpeechRecognizerDelegate* delegate,
net::URLRequestContextGetter* context_getter,
content::ResourceContext* resource_context,
int caller_id,
@@ -65,7 +57,7 @@
// associated to the given profile.
class SpeechInputExtensionManager
: public base::RefCountedThreadSafe<SpeechInputExtensionManager>,
- public content::SpeechRecognizerDelegate,
+ public speech_input::SpeechRecognizerDelegate,
public content::NotificationObserver,
private SpeechInputExtensionInterface {
public:
@@ -155,7 +147,7 @@
virtual bool HasValidRecognizer() OVERRIDE;
virtual void StartRecording(
- content::SpeechRecognizerDelegate* delegate,
+ speech_input::SpeechRecognizerDelegate* delegate,
net::URLRequestContextGetter* context_getter,
content::ResourceContext* resource_context,
int caller_id,
« no previous file with comments | « chrome/browser/speech/speech_input_extension_apitest.cc ('k') | chrome/browser/speech/speech_input_extension_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698