Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_CAST_CAST_CONFIG_H_ | 5 #ifndef MEDIA_CAST_CAST_CONFIG_H_ |
| 6 #define MEDIA_CAST_CAST_CONFIG_H_ | 6 #define MEDIA_CAST_CAST_CONFIG_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/shared_memory.h" | |
| 16 #include "base/single_thread_task_runner.h" | |
| 15 #include "media/cast/cast_defines.h" | 17 #include "media/cast/cast_defines.h" |
| 16 #include "media/cast/transport/cast_transport_config.h" | 18 #include "media/cast/transport/cast_transport_config.h" |
| 17 | 19 |
| 18 namespace media { | 20 namespace media { |
| 21 class VideoEncodeAccelerator; | |
| 22 | |
| 19 namespace cast { | 23 namespace cast { |
| 20 | 24 |
| 21 enum RtcpMode { | 25 enum RtcpMode { |
| 22 kRtcpCompound, // Compound RTCP mode is described by RFC 4585. | 26 kRtcpCompound, // Compound RTCP mode is described by RFC 4585. |
| 23 kRtcpReducedSize, // Reduced-size RTCP mode is described by RFC 5506. | 27 kRtcpReducedSize, // Reduced-size RTCP mode is described by RFC 5506. |
| 24 }; | 28 }; |
| 25 | 29 |
| 26 struct AudioSenderConfig { | 30 struct AudioSenderConfig { |
| 27 AudioSenderConfig(); | 31 AudioSenderConfig(); |
| 28 | 32 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 std::vector<int16> samples; | 134 std::vector<int16> samples; |
| 131 }; | 135 }; |
| 132 | 136 |
| 133 // import from media::cast::transport | 137 // import from media::cast::transport |
| 134 typedef transport::Packet Packet; | 138 typedef transport::Packet Packet; |
| 135 typedef transport::PacketList PacketList; | 139 typedef transport::PacketList PacketList; |
| 136 | 140 |
| 137 typedef base::Callback<void(CastInitializationStatus)> | 141 typedef base::Callback<void(CastInitializationStatus)> |
| 138 CastInitializationCallback; | 142 CastInitializationCallback; |
| 139 | 143 |
| 144 typedef base::Callback<void( | |
| 145 const base::Callback<void(scoped_refptr<base::SingleThreadTaskRunner>, | |
|
pwestin
2014/03/21 21:02:02
const base::Callback<void(scoped_refptr<base::Sing
Alpha Left Google
2014/03/21 21:37:12
Done.
| |
| 146 scoped_ptr<media::VideoEncodeAccelerator>)>&)> | |
| 147 CreateVideoEncodeAcceleratorCallback; | |
| 148 typedef base::Callback< | |
| 149 void(size_t size, | |
| 150 const base::Callback<void(scoped_ptr<base::SharedMemory>)>&)> | |
|
pwestin
2014/03/21 21:02:02
const base::Callback<void(scoped_ptr<base::SharedM
Alpha Left Google
2014/03/21 21:37:12
Done.
| |
| 151 CreateVideoEncodeMemoryCallback; | |
| 152 | |
| 140 } // namespace cast | 153 } // namespace cast |
| 141 } // namespace media | 154 } // namespace media |
| 142 | 155 |
| 143 #endif // MEDIA_CAST_CAST_CONFIG_H_ | 156 #endif // MEDIA_CAST_CAST_CONFIG_H_ |
| OLD | NEW |