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

Side by Side Diff: content/public/common/media_stream_request.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/media_stream_request.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/public/common/media_stream_request.h" 5 #include "content/public/common/media_stream_request.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 bool IsAudioMediaType(MediaStreamDeviceType type) { 9 bool IsAudioMediaType(MediaStreamDeviceType type) {
10 return (type == content::MEDIA_DEVICE_AUDIO_CAPTURE || 10 return (type == content::MEDIA_DEVICE_AUDIO_CAPTURE ||
(...skipping 13 matching lines...) Expand all
24 device_id(device_id), 24 device_id(device_id),
25 name(name) { 25 name(name) {
26 } 26 }
27 27
28 MediaStreamDevice::~MediaStreamDevice() {} 28 MediaStreamDevice::~MediaStreamDevice() {}
29 29
30 MediaStreamRequest::MediaStreamRequest( 30 MediaStreamRequest::MediaStreamRequest(
31 int render_process_id, 31 int render_process_id,
32 int render_view_id, 32 int render_view_id,
33 const GURL& security_origin, 33 const GURL& security_origin,
34 MediaStreamRequestType request_type,
34 MediaStreamDeviceType audio_type, 35 MediaStreamDeviceType audio_type,
35 MediaStreamDeviceType video_type) 36 MediaStreamDeviceType video_type)
36 : render_process_id(render_process_id), 37 : render_process_id(render_process_id),
37 render_view_id(render_view_id), 38 render_view_id(render_view_id),
38 security_origin(security_origin), 39 security_origin(security_origin),
40 request_type(request_type),
39 audio_type(audio_type), 41 audio_type(audio_type),
40 video_type(video_type) { 42 video_type(video_type) {
41 } 43 }
42 44
43 MediaStreamRequest::~MediaStreamRequest() {} 45 MediaStreamRequest::~MediaStreamRequest() {}
44 46
45 } // namespace content 47 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/media_stream_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698