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

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

Issue 9972011: Speech refactoring: Reimplemented SpeechRecognitionManagerImpl as a FSM. (CL1.7) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further Satish comments. 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
new file mode 100644
index 0000000000000000000000000000000000000000..35762c0c72819cfdcb6675444f6a561d8dfade0e
--- /dev/null
+++ b/content/public/browser/speech_recognition_session_config.h
@@ -0,0 +1,33 @@
+// 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_RECOGNITION_SESSION_CONFIG_H_
+#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_
+
+#include "base/basictypes.h"
+#include "content/common/content_export.h"
+#include "content/public/browser/speech_recognition_session_context.h"
+
+namespace net {
+class URLRequestContextGetter;
+}
+
+namespace content {
+
+// Configuration params for creating a new speech recognition session.
+struct CONTENT_EXPORT SpeechRecognitionSessionConfig {
+ SpeechRecognitionSessionConfig();
+ ~SpeechRecognitionSessionConfig();
+
+ std::string language;
+ std::string grammar;
+ std::string origin_url;
+ bool filter_profanities;
+ SpeechRecognitionSessionContext initial_context;
+ net::URLRequestContextGetter* url_request_context_getter;
jam 2012/04/24 15:56:32 nit: why not hold this in scoped_refcounted?
Primiano Tucci (use gerrit) 2012/04/25 11:30:03 Ah, didn't noted that it is refcounted. But this w
jam 2012/04/25 15:14:08 yeah there are no issues with including other .h f
Primiano Tucci (use gerrit) 2012/04/25 16:55:48 Done.
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONFIG_H_

Powered by Google App Engine
This is Rietveld 408576698