| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/media/media_stream_options.h" | 5 #include "content/common/media/media_stream_options.h" |
| 6 | 6 |
| 7 namespace media_stream { | 7 namespace media_stream { |
| 8 | 8 |
| 9 // static |
| 10 const int StreamDeviceInfo::kNoId = -1; |
| 11 |
| 9 StreamDeviceInfo::StreamDeviceInfo() | 12 StreamDeviceInfo::StreamDeviceInfo() |
| 10 : stream_type(kNoService), | 13 : stream_type(kNoService), |
| 11 in_use(false), | 14 in_use(false), |
| 12 session_id(kNoId) {} | 15 session_id(kNoId) {} |
| 13 | 16 |
| 14 StreamDeviceInfo::StreamDeviceInfo(MediaStreamType service_param, | 17 StreamDeviceInfo::StreamDeviceInfo(MediaStreamType service_param, |
| 15 const std::string& name_param, | 18 const std::string& name_param, |
| 16 const std::string& device_param, | 19 const std::string& device_param, |
| 17 bool opened) | 20 bool opened) |
| 18 : stream_type(service_param), | 21 : stream_type(service_param), |
| 19 name(name_param), | 22 name(name_param), |
| 20 device_id(device_param), | 23 device_id(device_param), |
| 21 in_use(opened), | 24 in_use(opened), |
| 22 session_id(kNoId) {} | 25 session_id(kNoId) {} |
| 23 | 26 |
| 24 } // namespace media_stream | 27 } // namespace media_stream |
| OLD | NEW |