| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "media/base/output_device_info.h" | 5 #include "media/base/output_device_info.h" |
| 6 | 6 |
| 7 namespace media { | 7 namespace media { |
| 8 | 8 |
| 9 // Output device information returned by GetOutputDeviceInfo() methods of | 9 // Output device information returned by GetOutputDeviceInfo() methods of |
| 10 // various interfaces. | 10 // various interfaces. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 device_status_(device_status), | 23 device_status_(device_status), |
| 24 output_params_(output_params) {} | 24 output_params_(output_params) {} |
| 25 | 25 |
| 26 OutputDeviceInfo::OutputDeviceInfo(const OutputDeviceInfo&) = default; | 26 OutputDeviceInfo::OutputDeviceInfo(const OutputDeviceInfo&) = default; |
| 27 | 27 |
| 28 OutputDeviceInfo& OutputDeviceInfo::operator=(const OutputDeviceInfo&) = | 28 OutputDeviceInfo& OutputDeviceInfo::operator=(const OutputDeviceInfo&) = |
| 29 default; | 29 default; |
| 30 | 30 |
| 31 OutputDeviceInfo::~OutputDeviceInfo() {} | 31 OutputDeviceInfo::~OutputDeviceInfo() {} |
| 32 | 32 |
| 33 void OutputDeviceInfo::SetIsWebAudioSource(bool value) { |
| 34 is_webaudio_source_ = value; |
| 35 } |
| 36 |
| 33 std::string OutputDeviceInfo::AsHumanReadableString() const { | 37 std::string OutputDeviceInfo::AsHumanReadableString() const { |
| 34 std::ostringstream s; | 38 std::ostringstream s; |
| 35 s << "device_id: " << device_id() << " device_status: " << device_status() | 39 s << "device_id: " << device_id() << " device_status: " << device_status() |
| 36 << " output_params: [ " << output_params().AsHumanReadableString() << " ]"; | 40 << " output_params: [ " << output_params().AsHumanReadableString() << " ]" |
| 41 << " is_webaudio_source: " << is_webaudio_source(); |
| 37 return s.str(); | 42 return s.str(); |
| 38 } | 43 } |
| 39 | 44 |
| 40 } // namespace media | 45 } // namespace media |
| OLD | NEW |