| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/speech/speech_recognizer_impl.h" | 5 #include "content/browser/speech/speech_recognizer_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "content/browser/browser_main_loop.h" | 13 #include "content/browser/browser_main_loop.h" |
| 14 #include "content/browser/media/media_internals.h" | 14 #include "content/browser/media/media_internals.h" |
| 15 #include "content/browser/speech/audio_buffer.h" | 15 #include "content/browser/speech/audio_buffer.h" |
| 16 #include "content/browser/speech/google_one_shot_remote_engine.h" | |
| 17 #include "content/public/browser/speech_recognition_event_listener.h" | 16 #include "content/public/browser/speech_recognition_event_listener.h" |
| 18 #include "media/base/audio_converter.h" | 17 #include "media/base/audio_converter.h" |
| 19 | 18 |
| 20 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
| 21 #include "media/audio/win/core_audio_util_win.h" | 20 #include "media/audio/win/core_audio_util_win.h" |
| 22 #endif | 21 #endif |
| 23 | 22 |
| 24 using media::AudioBus; | 23 using media::AudioBus; |
| 25 using media::AudioConverter; | 24 using media::AudioConverter; |
| 26 using media::AudioInputController; | 25 using media::AudioInputController; |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 engine_error(SPEECH_RECOGNITION_ERROR_NONE) { | 835 engine_error(SPEECH_RECOGNITION_ERROR_NONE) { |
| 837 } | 836 } |
| 838 | 837 |
| 839 SpeechRecognizerImpl::FSMEventArgs::FSMEventArgs(const FSMEventArgs& other) = | 838 SpeechRecognizerImpl::FSMEventArgs::FSMEventArgs(const FSMEventArgs& other) = |
| 840 default; | 839 default; |
| 841 | 840 |
| 842 SpeechRecognizerImpl::FSMEventArgs::~FSMEventArgs() { | 841 SpeechRecognizerImpl::FSMEventArgs::~FSMEventArgs() { |
| 843 } | 842 } |
| 844 | 843 |
| 845 } // namespace content | 844 } // namespace content |
| OLD | NEW |