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 MOJO_MEDIA_MODELS_ACTIVE_SINK_H_ | 5 #ifndef MOJO_MEDIA_MODELS_ACTIVE_SINK_H_ |
6 #define MOJO_MEDIA_MODELS_ACTIVE_SINK_H_ | 6 #define MOJO_MEDIA_MODELS_ACTIVE_SINK_H_ |
7 | 7 |
8 #include "services/media/framework/models/demand.h" | 8 #include "services/media/framework/models/demand.h" |
9 #include "services/media/framework/models/part.h" | 9 #include "services/media/framework/models/part.h" |
10 #include "services/media/framework/packet.h" | 10 #include "services/media/framework/packet.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // Sets the callback that signals demand asynchronously. | 27 // Sets the callback that signals demand asynchronously. |
28 virtual void SetDemandCallback(const DemandCallback& demand_callback) = 0; | 28 virtual void SetDemandCallback(const DemandCallback& demand_callback) = 0; |
29 | 29 |
30 // Supplies a packet to the sink, returning the new demand for the input. | 30 // Supplies a packet to the sink, returning the new demand for the input. |
31 virtual Demand SupplyPacket(PacketPtr packet) = 0; | 31 virtual Demand SupplyPacket(PacketPtr packet) = 0; |
32 }; | 32 }; |
33 | 33 |
34 } // namespace media | 34 } // namespace media |
35 } // namespace mojo | 35 } // namespace mojo |
36 | 36 |
37 #endif // MOJO_MEDIA_MODELS_ACTIVE_SINK_H_ | 37 #endif // MOJO_MEDIA_MODELS_ACTIVE_SINK_H_ |
OLD | NEW |