OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_input_manager.h" | 5 #include "content/browser/speech/speech_input_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/browser/speech/speech_input_preferences.h" | 8 #include "content/browser/speech/speech_input_preferences.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "media/audio/audio_manager.h" | 10 #include "media/audio/audio_manager.h" |
11 | 11 |
| 12 using content::BrowserThread; |
| 13 |
12 namespace speech_input { | 14 namespace speech_input { |
13 | 15 |
14 SpeechInputManager::SpeechInputManager() | 16 SpeechInputManager::SpeechInputManager() |
15 : can_report_metrics_(false), | 17 : can_report_metrics_(false), |
16 recording_caller_id_(0) { | 18 recording_caller_id_(0) { |
17 } | 19 } |
18 | 20 |
19 SpeechInputManager::~SpeechInputManager() { | 21 SpeechInputManager::~SpeechInputManager() { |
20 while (requests_.begin() != requests_.end()) | 22 while (requests_.begin() != requests_.end()) |
21 CancelRecognition(requests_.begin()->first); | 23 CancelRecognition(requests_.begin()->first); |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 200 |
199 SpeechInputManager::SpeechInputRequest::SpeechInputRequest() | 201 SpeechInputManager::SpeechInputRequest::SpeechInputRequest() |
200 : delegate(NULL), | 202 : delegate(NULL), |
201 is_active(false) { | 203 is_active(false) { |
202 } | 204 } |
203 | 205 |
204 SpeechInputManager::SpeechInputRequest::~SpeechInputRequest() { | 206 SpeechInputManager::SpeechInputRequest::~SpeechInputRequest() { |
205 } | 207 } |
206 | 208 |
207 } // namespace speech_input | 209 } // namespace speech_input |
OLD | NEW |