| 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 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_ | 5 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_ |
| 6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_ | 6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_ |
| 7 | 7 |
| 8 #include "mojo/services/media/common/interfaces/media_common.mojom.h" | 8 #include "mojo/services/media/common/interfaces/media_common.mojom.h" |
| 9 #include "mojo/services/media/common/interfaces/media_transport.mojom.h" | 9 #include "mojo/services/media/common/interfaces/media_transport.mojom.h" |
| 10 #include "mojo/services/media/common/interfaces/media_types.mojom.h" | 10 #include "mojo/services/media/common/interfaces/media_types.mojom.h" |
| 11 #include "mojo/services/media/common/interfaces/timelines.mojom.h" | 11 #include "mojo/services/media/common/interfaces/timelines.mojom.h" |
| 12 #include "mojo/services/media/control/interfaces/media_source.mojom.h" | 12 #include "mojo/services/media/control/interfaces/media_source.mojom.h" |
| 13 #include "mojo/services/network/interfaces/network_service.mojom.h" | 13 #include "mojo/services/network/interfaces/network_service.mojom.h" |
| 14 #include "services/media/framework/util/formatting.h" | 14 #include "services/media/framework/util/formatting.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace media { | 17 namespace media { |
| 18 | 18 |
| 19 // See services/media/framework/ostream.h for details. | 19 // See services/media/framework/ostream.h for details. |
| 20 | 20 |
| 21 // Mojo defines versions of operator<< for this that produce only numbers. | 21 // Mojo defines versions of operator<< for this that produce only numbers. |
| 22 const char* StringFromMediaTypeMedium(MediaTypeMedium value); | 22 const char* StringFromMediaTypeMedium(MediaTypeMedium value); |
| 23 const char* StringFromAudioSampleFormat(AudioSampleFormat value); | 23 const char* StringFromAudioSampleFormat(AudioSampleFormat value); |
| 24 const char* StringFromMediaState(MediaState value); | |
| 25 | 24 |
| 26 // The following overloads add newlines. | 25 // The following overloads add newlines. |
| 27 | 26 |
| 28 template <typename T> | 27 template <typename T> |
| 29 std::ostream& operator<<(std::ostream& os, const InterfacePtr<T>& value); | 28 std::ostream& operator<<(std::ostream& os, const InterfacePtr<T>& value); |
| 30 | 29 |
| 31 std::ostream& operator<<(std::ostream& os, const MediaTypePtr& value); | 30 std::ostream& operator<<(std::ostream& os, const MediaTypePtr& value); |
| 32 std::ostream& operator<<(std::ostream& os, const MediaTypeSetPtr& value); | 31 std::ostream& operator<<(std::ostream& os, const MediaTypeSetPtr& value); |
| 33 std::ostream& operator<<(std::ostream& os, const MediaTypeDetailsPtr& value); | 32 std::ostream& operator<<(std::ostream& os, const MediaTypeDetailsPtr& value); |
| 34 std::ostream& operator<<(std::ostream& os, const MediaTypeSetDetailsPtr& value); | 33 std::ostream& operator<<(std::ostream& os, const MediaTypeSetDetailsPtr& value); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 os << begl << "[" << index++ << "] " << element; | 73 os << begl << "[" << index++ << "] " << element; |
| 75 } | 74 } |
| 76 | 75 |
| 77 return os; | 76 return os; |
| 78 } | 77 } |
| 79 | 78 |
| 80 } // namespace media | 79 } // namespace media |
| 81 } // namespace mojo | 80 } // namespace mojo |
| 82 | 81 |
| 83 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_ | 82 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_FORMATTING_H_ |
| OLD | NEW |