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

Unified Diff: content/browser/speech/speech_recognition_manager_impl.cc

Issue 11339014: Move content\browser\renderer_host\media to content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/speech_recognition_manager_impl.cc
===================================================================
--- content/browser/speech/speech_recognition_manager_impl.cc (revision 164646)
+++ content/browser/speech/speech_recognition_manager_impl.cc (working copy)
@@ -46,7 +46,7 @@
#if !defined(OS_IOS)
class SpeechRecognitionManagerImpl::PermissionRequest
- : public media_stream::MediaStreamRequester {
+ : public MediaStreamRequester {
public:
PermissionRequest(int session_id,
const base::Callback<void(bool is_allowed)>& callback)
@@ -67,8 +67,7 @@
this,
render_process_id,
render_view_id,
- media_stream::StreamOptions(MEDIA_DEVICE_AUDIO_CAPTURE,
- MEDIA_DEVICE_VIDEO_CAPTURE),
+ StreamOptions(MEDIA_DEVICE_AUDIO_CAPTURE, MEDIA_DEVICE_VIDEO_CAPTURE),
origin,
&label_);
}
@@ -84,8 +83,8 @@
// MediaStreamRequester methods.
virtual void StreamGenerated(
const std::string& label,
- const media_stream::StreamDeviceInfoArray& audio_devices,
- const media_stream::StreamDeviceInfoArray& video_devices) OVERRIDE {
+ const StreamDeviceInfoArray& audio_devices,
+ const StreamDeviceInfoArray& video_devices) OVERRIDE {
// TODO(hans): One day it would be nice to actually use the generated stream
// but right now we only use it to request permission, and then we dump it.
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -93,7 +92,7 @@
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
- base::Bind(&media_stream::MediaStreamManager::StopGeneratedStream,
+ base::Bind(&MediaStreamManager::StopGeneratedStream,
base::Unretained(BrowserMainLoop::GetMediaStreamManager()),
label));
callback_.Run(true);
@@ -108,10 +107,10 @@
// The callbacks below are ignored.
virtual void DevicesEnumerated(
const std::string& label,
- const media_stream::StreamDeviceInfoArray& devices) OVERRIDE {}
+ const StreamDeviceInfoArray& devices) OVERRIDE {}
virtual void DeviceOpened(
const std::string& label,
- const media_stream::StreamDeviceInfo& device_info) OVERRIDE {}
+ const StreamDeviceInfo& device_info) OVERRIDE {}
private:
int session_id_;

Powered by Google App Engine
This is Rietveld 408576698