Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / common / speech_recognition_grammar.h
blob98dd77edd599ac8ab4005675108cb5f0850d3243
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_
6 #define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_
8 #include <vector>
10 #include "base/basictypes.h"
11 #include "content/common/content_export.h"
13 namespace content {
15 struct CONTENT_EXPORT SpeechRecognitionGrammar {
16 SpeechRecognitionGrammar()
17 : weight(0.0f) {
19 explicit SpeechRecognitionGrammar(const std::string& url_value)
20 : url(url_value),
21 weight(0.0f) {
23 SpeechRecognitionGrammar(const std::string& url_value, double weight_value)
24 : url(url_value),
25 weight(weight_value) {
28 std::string url;
29 double weight;
32 typedef std::vector<SpeechRecognitionGrammar> SpeechRecognitionGrammarArray;
34 } // namespace content
36 #endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_GRAMMAR_H_