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

Side by Side Diff: content/browser/speech/speech_recognition_engine.h

Issue 778393002: Add OAuth2 authentication for some voice transcription requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ 5 #ifndef CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_
6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ 6 #define CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 std::string language; 52 std::string language;
53 SpeechRecognitionGrammarArray grammars; 53 SpeechRecognitionGrammarArray grammars;
54 bool filter_profanities; 54 bool filter_profanities;
55 bool continuous; 55 bool continuous;
56 bool interim_results; 56 bool interim_results;
57 uint32 max_hypotheses; 57 uint32 max_hypotheses;
58 std::string hardware_info; 58 std::string hardware_info;
59 std::string origin_url; 59 std::string origin_url;
60 int audio_sample_rate; 60 int audio_sample_rate;
61 int audio_num_bits_per_sample; 61 int audio_num_bits_per_sample;
62 std::string auth_token;
63 std::string auth_scope;
62 }; 64 };
63 65
64 virtual ~SpeechRecognitionEngine() {} 66 virtual ~SpeechRecognitionEngine() {}
65 67
66 // Set/change the recognition engine configuration. It is not allowed to call 68 // Set/change the recognition engine configuration. It is not allowed to call
67 // this function while a recognition is ongoing. 69 // this function while a recognition is ongoing.
68 virtual void SetConfig(const Config& config) = 0; 70 virtual void SetConfig(const Config& config) = 0;
69 71
70 // Called when the speech recognition begins, before any TakeAudioChunk call. 72 // Called when the speech recognition begins, before any TakeAudioChunk call.
71 virtual void StartRecognition() = 0; 73 virtual void StartRecognition() = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 105
104 // These typedefs are to workaround the issue with certain versions of 106 // These typedefs are to workaround the issue with certain versions of
105 // Visual Studio where it gets confused between multiple Delegate 107 // Visual Studio where it gets confused between multiple Delegate
106 // classes and gives a C2500 error. 108 // classes and gives a C2500 error.
107 typedef SpeechRecognitionEngine::Delegate SpeechRecognitionEngineDelegate; 109 typedef SpeechRecognitionEngine::Delegate SpeechRecognitionEngineDelegate;
108 typedef SpeechRecognitionEngine::Config SpeechRecognitionEngineConfig; 110 typedef SpeechRecognitionEngine::Config SpeechRecognitionEngineConfig;
109 111
110 } // namespace content 112 } // namespace content
111 113
112 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_ 114 #endif // CONTENT_BROWSER_SPEECH_SPEECH_RECOGNITION_ENGINE_H_
OLDNEW
« no previous file with comments | « content/browser/speech/google_streaming_remote_engine.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