| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_impl.h" | 5 #include "content/browser/speech/speech_input_manager_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "content/browser/browser_main_loop.h" | 8 #include "content/browser/browser_main_loop.h" |
| 9 #include "content/browser/renderer_host/render_view_host_impl.h" | 9 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 10 #include "content/browser/speech/speech_input_dispatcher_host.h" | 10 #include "content/browser/speech/speech_input_dispatcher_host.h" |
| 11 #include "content/browser/speech/speech_recognizer_impl.h" | 11 #include "content/browser/speech/speech_recognizer_impl.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
| 14 #include "content/public/browser/render_view_host_delegate.h" | 14 #include "content/public/browser/render_view_host_delegate.h" |
| 15 #include "content/public/browser/resource_context.h" | 15 #include "content/public/browser/resource_context.h" |
| 16 #include "content/public/browser/speech_input_manager_delegate.h" | 16 #include "content/public/browser/speech_input_manager_delegate.h" |
| 17 #include "content/public/browser/speech_input_preferences.h" | 17 #include "content/public/browser/speech_input_preferences.h" |
| 18 #include "content/public/common/view_type.h" | 18 #include "content/public/common/view_type.h" |
| 19 | 19 |
| 20 using content::BrowserMainLoop; | 20 using content::BrowserMainLoop; |
| 21 using content::BrowserThread; | 21 using content::BrowserThread; |
| 22 using content::RenderViewHostImpl; |
| 22 using content::SpeechInputManagerDelegate; | 23 using content::SpeechInputManagerDelegate; |
| 23 | 24 |
| 24 content::SpeechInputManager* content::SpeechInputManager::GetInstance() { | 25 content::SpeechInputManager* content::SpeechInputManager::GetInstance() { |
| 25 return speech_input::SpeechInputManagerImpl::GetInstance(); | 26 return speech_input::SpeechInputManagerImpl::GetInstance(); |
| 26 } | 27 } |
| 27 | 28 |
| 28 namespace speech_input { | 29 namespace speech_input { |
| 29 | 30 |
| 30 struct SpeechInputManagerImpl::SpeechInputParams { | 31 struct SpeechInputManagerImpl::SpeechInputParams { |
| 31 SpeechInputParams(SpeechInputDispatcherHost* delegate, | 32 SpeechInputParams(SpeechInputDispatcherHost* delegate, |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 343 |
| 343 SpeechInputManagerImpl::SpeechInputRequest::SpeechInputRequest() | 344 SpeechInputManagerImpl::SpeechInputRequest::SpeechInputRequest() |
| 344 : delegate(NULL), | 345 : delegate(NULL), |
| 345 is_active(false) { | 346 is_active(false) { |
| 346 } | 347 } |
| 347 | 348 |
| 348 SpeechInputManagerImpl::SpeechInputRequest::~SpeechInputRequest() { | 349 SpeechInputManagerImpl::SpeechInputRequest::~SpeechInputRequest() { |
| 349 } | 350 } |
| 350 | 351 |
| 351 } // namespace speech_input | 352 } // namespace speech_input |
| OLD | NEW |