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

Unified Diff: content/public/browser/speech_recognizer.h

Issue 10377082: SpeechInputExtensionManager now interface with SpeechRecognitionManagerDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase before dcommit Created 8 years, 7 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/public/browser/speech_recognition_session_context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/speech_recognizer.h
diff --git a/content/public/browser/speech_recognizer.h b/content/public/browser/speech_recognizer.h
deleted file mode 100644
index 455395289d43c5766aa18bcfd7913ab016cdc938..0000000000000000000000000000000000000000
--- a/content/public/browser/speech_recognizer.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_
-#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_
-#pragma once
-
-#include <string>
-
-#include "base/memory/ref_counted.h"
-#include "content/common/content_export.h"
-
-namespace net {
-class URLRequestContextGetter;
-}
-
-namespace content {
-
-class SpeechRecognitionEventListener;
-
-// Records audio, sends recorded audio to server and translates server response
-// to recognition result.
-// TODO(primiano) remove this public interface as soon as we fix speech input
-// extensions.
-class SpeechRecognizer : public base::RefCountedThreadSafe<SpeechRecognizer> {
- public:
- CONTENT_EXPORT static SpeechRecognizer* Create(
- SpeechRecognitionEventListener* event_listener,
- int session_id,
- const std::string& language,
- const std::string& grammar,
- net::URLRequestContextGetter* context_getter,
- bool filter_profanities,
- const std::string& hardware_info,
- const std::string& origin_url);
-
- // Starts audio recording and the recognition process. The same
- // SpeechRecognizer instance can be used multiple times for speech recognition
- // though each recognition request can be made only after the previous one
- // completes (i.e. after receiving
- // SpeechRecognitionEventListener::OnRecognitionEnd).
- virtual void StartRecognition() = 0;
-
- // Stops recording audio and cancels recognition. Any audio recorded so far
- // gets discarded.
- virtual void AbortRecognition() = 0;
-
- // Stops recording audio and finalizes recognition, possibly getting results.
- virtual void StopAudioCapture() = 0;
-
- // Checks wether the recognizer is active, that is, either capturing audio
- // or waiting for a result.
- virtual bool IsActive() const = 0;
-
- // Checks whether the recognizer is capturing audio.
- virtual bool IsCapturingAudio() const = 0;
-
- protected:
- friend class base::RefCountedThreadSafe<SpeechRecognizer>;
- virtual ~SpeechRecognizer() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_
« no previous file with comments | « content/public/browser/speech_recognition_session_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698