| 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;
|
|
|