Index: media/cast/cast_config.h |
diff --git a/media/cast/cast_config.h b/media/cast/cast_config.h |
index 988924aab45f76d3d2175a19c822674f8634300a..276429a73f17d8f092dfa090d3a393ec78d9bcb9 100644 |
--- a/media/cast/cast_config.h |
+++ b/media/cast/cast_config.h |
@@ -176,6 +176,7 @@ class PacketSender { |
public: |
// All packets to be sent to the network will be delivered via this function. |
virtual bool SendPacket(const uint8* packet, int length) = 0; |
+ virtual bool SendPacket(const std::vector<uint8>& packet); |
virtual ~PacketSender() {} |
}; |
@@ -187,7 +188,11 @@ class PacketReceiver : public base::RefCountedThreadSafe<PacketReceiver> { |
virtual void ReceivedPacket(const uint8* packet, int length, |
const base::Closure callback) = 0; |
+ protected: |
virtual ~PacketReceiver() {} |
+ |
+ private: |
+ friend class base::RefCountedThreadSafe<PacketReceiver>; |
}; |
class VideoEncoderController { |