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

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 Hans 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..1e4e42ee82d8e0ac6cd99ca0c9bc401f10056d09 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;
@@ -22,9 +24,10 @@ struct CONTENT_EXPORT SpeechRecognitionSessionConfig {
~SpeechRecognitionSessionConfig();
std::string language;
- std::string grammar;
+ SpeechRecognitionGrammarArray grammars;
std::string origin_url;
bool filter_profanities;
+ bool continuous;
Satish 2012/04/27 10:04:41 this name is very generic. perhaps add a comment h
Primiano Tucci (use gerrit) 2012/04/27 15:58:44 Renamed to is_one_shot.
SpeechRecognitionSessionContext initial_context;
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter;
};

Powered by Google App Engine
This is Rietveld 408576698