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

Side by Side Diff: content/browser/speech/speech_input_manager.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/speech/speech_input_dispatcher_host.cc ('k') | content/browser/speech/speech_recognizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698