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

Side by Side Diff: chrome/browser/speech/speech_input_extension_manager.cc

Issue 9371025: Move resource_context.h to content/public/browser. Remove the workaround in its destructor since ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months 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) 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 "chrome/browser/speech/speech_input_extension_manager.h" 5 #include "chrome/browser/speech/speech_input_extension_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/extensions/extension_event_router.h" 11 #include "chrome/browser/extensions/extension_event_router.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/prefs/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/profiles/profile_dependency_manager.h" 15 #include "chrome/browser/profiles/profile_dependency_manager.h"
16 #include "chrome/browser/profiles/profile_keyed_service.h" 16 #include "chrome/browser/profiles/profile_keyed_service.h"
17 #include "chrome/browser/profiles/profile_keyed_service_factory.h" 17 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
18 #include "chrome/browser/speech/speech_input_extension_notification.h" 18 #include "chrome/browser/speech/speech_input_extension_notification.h"
19 #include "chrome/common/chrome_notification_types.h" 19 #include "chrome/common/chrome_notification_types.h"
20 #include "chrome/common/extensions/extension.h" 20 #include "chrome/common/extensions/extension.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "content/browser/resource_context.h"
23 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
24 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
25 #include "content/public/browser/notification_service.h" 24 #include "content/public/browser/notification_service.h"
25 #include "content/public/browser/resource_context.h"
26 #include "content/public/common/speech_input_result.h" 26 #include "content/public/common/speech_input_result.h"
27 27
28 using content::BrowserThread; 28 using content::BrowserThread;
29 using speech_input::SpeechRecognizer; 29 using speech_input::SpeechRecognizer;
30 30
31 namespace { 31 namespace {
32 32
33 const char kErrorNoRecordingDeviceFound[] = "noRecordingDeviceFound"; 33 const char kErrorNoRecordingDeviceFound[] = "noRecordingDeviceFound";
34 const char kErrorRecordingDeviceInUse[] = "recordingDeviceInUse"; 34 const char kErrorRecordingDeviceInUse[] = "recordingDeviceInUse";
35 const char kErrorUnableToStart[] = "unableToStart"; 35 const char kErrorUnableToStart[] = "unableToStart";
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 base::Bind(&SpeechInputExtensionManager::SetInputVolumeOnUIThread, 715 base::Bind(&SpeechInputExtensionManager::SetInputVolumeOnUIThread,
716 this, volume)); 716 this, volume));
717 } 717 }
718 718
719 void SpeechInputExtensionManager::SetInputVolumeOnUIThread( 719 void SpeechInputExtensionManager::SetInputVolumeOnUIThread(
720 float volume) { 720 float volume) {
721 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 721 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
722 DCHECK(notification_.get()); 722 DCHECK(notification_.get());
723 notification_->SetVUMeterVolume(volume); 723 notification_->SetVUMeterVolume(volume);
724 } 724 }
OLDNEW
« no previous file with comments | « chrome/browser/speech/speech_input_bubble_views.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698