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

Unified Diff: content/browser/renderer_host/media/media_stream_ui_controller.cc

Issue 11446042: Make sure that all OpenDevice requests are scrutinized against the audio and video policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased again... Created 8 years 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/renderer_host/media/media_stream_ui_controller.cc
diff --git a/content/browser/renderer_host/media/media_stream_ui_controller.cc b/content/browser/renderer_host/media/media_stream_ui_controller.cc
index 019093619b0f75ace13ba9a42e16ecb39d832f7e..03ffaff2997c3f08272e76205091f6af5216eb09 100644
--- a/content/browser/renderer_host/media/media_stream_ui_controller.cc
+++ b/content/browser/renderer_host/media/media_stream_ui_controller.cc
@@ -71,9 +71,10 @@ class MediaStreamRequestForUI : public MediaStreamRequest {
MediaStreamRequestForUI(int render_pid,
int render_vid,
const GURL& origin,
- const StreamOptions& options)
- : MediaStreamRequest(render_pid, render_vid, origin, options.audio_type,
- options.video_type),
+ const StreamOptions& options,
+ MediaStreamRequestType request_type)
+ : MediaStreamRequest(render_pid, render_vid, origin, request_type,
+ options.audio_type, options.video_type),
posted_task(false) {
DCHECK(IsAudioMediaType(options.audio_type) ||
IsVideoMediaType(options.video_type));
@@ -124,14 +125,14 @@ void MediaStreamUIController::MakeUIRequest(
int render_process_id,
int render_view_id,
const StreamOptions& request_options,
- const GURL& security_origin) {
+ const GURL& security_origin, MediaStreamRequestType request_type) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
// Create a new request.
if (!requests_.insert(
std::make_pair(label, new MediaStreamRequestForUI(
render_process_id, render_view_id, security_origin,
- request_options))).second) {
+ request_options, request_type))).second) {
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698