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

Side by Side Diff: content/browser/renderer_host/media/media_stream_manager.h

Issue 287383002: Implement getMediaDevices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't clear labels in DRMF. Created 6 years, 7 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 // MediaStreamManager is used to open/enumerate media capture devices (video 5 // MediaStreamManager is used to open/enumerate media capture devices (video
6 // supported now). Call flow: 6 // supported now). Call flow:
7 // 1. GenerateStream is called when a render process wants to use a capture 7 // 1. GenerateStream is called when a render process wants to use a capture
8 // device. 8 // device.
9 // 2. MediaStreamManager will ask MediaStreamUIController for permission to 9 // 2. MediaStreamManager will ask MediaStreamUIController for permission to
10 // use devices and for which device to use. 10 // use devices and for which device to use.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // When the |requester| is NULL, MediaStreamManager will enumerate both audio 127 // When the |requester| is NULL, MediaStreamManager will enumerate both audio
128 // and video devices and also start monitoring device changes, such as 128 // and video devices and also start monitoring device changes, such as
129 // plug/unplug. The new device lists will be delivered via media observer to 129 // plug/unplug. The new device lists will be delivered via media observer to
130 // MediaCaptureDevicesDispatcher. 130 // MediaCaptureDevicesDispatcher.
131 virtual std::string EnumerateDevices(MediaStreamRequester* requester, 131 virtual std::string EnumerateDevices(MediaStreamRequester* requester,
132 int render_process_id, 132 int render_process_id,
133 int render_view_id, 133 int render_view_id,
134 const ResourceContext::SaltCallback& sc, 134 const ResourceContext::SaltCallback& sc,
135 int page_request_id, 135 int page_request_id,
136 MediaStreamType type, 136 MediaStreamType type,
137 const GURL& security_origin); 137 const GURL& security_origin,
138 ResourceContext* resource_context);
138 139
139 // Open a device identified by |device_id|. |type| must be either 140 // Open a device identified by |device_id|. |type| must be either
140 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. 141 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
141 // The request is identified using string returned to the caller. 142 // The request is identified using string returned to the caller.
142 void OpenDevice(MediaStreamRequester* requester, 143 void OpenDevice(MediaStreamRequester* requester,
143 int render_process_id, 144 int render_process_id,
144 int render_view_id, 145 int render_view_id,
145 const ResourceContext::SaltCallback& sc, 146 const ResourceContext::SaltCallback& sc,
146 int page_request_id, 147 int page_request_id,
147 const std::string& device_id, 148 const std::string& device_id,
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 382
382 bool use_fake_ui_; 383 bool use_fake_ui_;
383 scoped_ptr<FakeMediaStreamUIProxy> fake_ui_; 384 scoped_ptr<FakeMediaStreamUIProxy> fake_ui_;
384 385
385 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager); 386 DISALLOW_COPY_AND_ASSIGN(MediaStreamManager);
386 }; 387 };
387 388
388 } // namespace content 389 } // namespace content
389 390
390 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_ 391 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698