| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |