#ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_
#define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_
#include <vector>
#include "base/basictypes.h"
#include "base/strings/string16.h"
#include "content/common/content_export.h"
namespace content {
struct SpeechRecognitionHypothesis {
base::string16 utterance;
double confidence;
SpeechRecognitionHypothesis() : confidence(0.0) {}
SpeechRecognitionHypothesis(const base::string16& utterance_value,
double confidence_value)
: utterance(utterance_value),
confidence(confidence_value) {
}
};
typedef std::vector<SpeechRecognitionHypothesis>
SpeechRecognitionHypothesisArray;
struct CONTENT_EXPORT SpeechRecognitionResult {
SpeechRecognitionHypothesisArray hypotheses;
bool is_provisional;
SpeechRecognitionResult();
~SpeechRecognitionResult();
};
typedef std::vector<SpeechRecognitionResult> SpeechRecognitionResults;
}
#endif