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

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

Issue 10233010: Introducing new data types and IPC messages for scripted JS speech recognition APIs (Speech CL2.0) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed according to Satish review. Created 8 years, 8 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/public/browser/speech_recognition_session_config.h
diff --git a/content/public/browser/speech_recognition_session_config.h b/content/public/browser/speech_recognition_session_config.h
index e4b2891d108cc386d9ea2cfd4df10d3300ebbf97..ec8a18d6c858f7a4b5f4734357319f356588f5f3 100644
--- a/content/public/browser/speech_recognition_session_config.h
+++ b/content/public/browser/speech_recognition_session_config.h
@@ -4,11 +4,13 @@
#ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_
#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_
+#pragma once
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "content/public/browser/speech_recognition_session_context.h"
+#include "content/public/common/speech_recognition_grammar.h"
namespace net {
class URLRequestContextGetter;
@@ -21,8 +23,12 @@ struct CONTENT_EXPORT SpeechRecognitionSessionConfig {
SpeechRecognitionSessionConfig();
~SpeechRecognitionSessionConfig();
+ // Enables one shot mode, which delivers a single result at the end of the
+ // speech, ending automatically recognition. When deasserted, continuous mode
+ // is used instead, carrying out recognition until an explicit stop request.
+ bool is_one_shot;
std::string language;
- std::string grammar;
+ SpeechRecognitionGrammarArray grammars;
std::string origin_url;
bool filter_profanities;
SpeechRecognitionSessionContext initial_context;

Powered by Google App Engine
This is Rietveld 408576698