| 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 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 | 22 |
| 23 MediaStreamDevice::MediaStreamDevice() : type(MEDIA_NO_SERVICE) {} | 23 MediaStreamDevice::MediaStreamDevice() : type(MEDIA_NO_SERVICE) {} |
| 24 | 24 |
| 25 MediaStreamDevice::MediaStreamDevice( | 25 MediaStreamDevice::MediaStreamDevice( |
| 26 MediaStreamType type, | 26 MediaStreamType type, |
| 27 const std::string& id, | 27 const std::string& id, |
| 28 const std::string& name) | 28 const std::string& name) |
| 29 : type(type), | 29 : type(type), |
| 30 id(id), | 30 id(id), |
| 31 name(name), | 31 name(name) { |
| 32 sample_rate(0), | |
| 33 channel_layout(0) { | |
| 34 } | 32 } |
| 35 | 33 |
| 36 MediaStreamDevice::MediaStreamDevice( | 34 MediaStreamDevice::MediaStreamDevice( |
| 37 MediaStreamType type, | 35 MediaStreamType type, |
| 38 const std::string& id, | 36 const std::string& id, |
| 39 const std::string& name, | 37 const std::string& name, |
| 40 int sample_rate, | 38 int sample_rate, |
| 41 int channel_layout) | 39 int channel_layout, |
| 40 int frames_per_buffer) |
| 42 : type(type), | 41 : type(type), |
| 43 id(id), | 42 id(id), |
| 44 name(name), | 43 name(name), |
| 45 sample_rate(sample_rate), | 44 input(sample_rate, channel_layout, frames_per_buffer) { |
| 46 channel_layout(channel_layout) { | |
| 47 } | 45 } |
| 48 | 46 |
| 49 MediaStreamDevice::~MediaStreamDevice() {} | 47 MediaStreamDevice::~MediaStreamDevice() {} |
| 50 | 48 |
| 51 MediaStreamRequest::MediaStreamRequest( | 49 MediaStreamRequest::MediaStreamRequest( |
| 52 int render_process_id, | 50 int render_process_id, |
| 53 int render_view_id, | 51 int render_view_id, |
| 54 int page_request_id, | 52 int page_request_id, |
| 55 const std::string& tab_capture_device_id, | 53 const std::string& tab_capture_device_id, |
| 56 const GURL& security_origin, | 54 const GURL& security_origin, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 67 request_type(request_type), | 65 request_type(request_type), |
| 68 requested_audio_device_id(requested_audio_device_id), | 66 requested_audio_device_id(requested_audio_device_id), |
| 69 requested_video_device_id(requested_video_device_id), | 67 requested_video_device_id(requested_video_device_id), |
| 70 audio_type(audio_type), | 68 audio_type(audio_type), |
| 71 video_type(video_type) { | 69 video_type(video_type) { |
| 72 } | 70 } |
| 73 | 71 |
| 74 MediaStreamRequest::~MediaStreamRequest() {} | 72 MediaStreamRequest::~MediaStreamRequest() {} |
| 75 | 73 |
| 76 } // namespace content | 74 } // namespace content |
| OLD | NEW |