summaryrefslogtreecommitdiff
path: root/media/cast/cast_config.h
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2013-09-12 12:10:22 +0100
committerTorne (Richard Coles) <torne@google.com>2013-09-12 12:10:22 +0100
commit58537e28ecd584eab876aee8be7156509866d23a (patch)
tree8988984e52090aaadf33cff139d7dd212cd13656 /media/cast/cast_config.h
parent0a1b11dee8e5cb2520121c300858fea6138e3c54 (diff)
downloadchromium_org-58537e28ecd584eab876aee8be7156509866d23a.tar.gz
Merge from Chromium at DEPS revision 222756
This commit was generated by merge_to_master.py. Change-Id: I40d7f32f195f328f005f230ea80d07092d48040e
Diffstat (limited to 'media/cast/cast_config.h')
-rw-r--r--media/cast/cast_config.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/media/cast/cast_config.h b/media/cast/cast_config.h
index e1280cd03b..988924aab4 100644
--- a/media/cast/cast_config.h
+++ b/media/cast/cast_config.h
@@ -9,6 +9,8 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/callback.h"
+#include "base/memory/ref_counted.h"
#include "media/cast/cast_defines.h"
namespace media {
@@ -175,17 +177,16 @@ class PacketSender {
// All packets to be sent to the network will be delivered via this function.
virtual bool SendPacket(const uint8* packet, int length) = 0;
- protected:
virtual ~PacketSender() {}
};
-class PacketReceiver {
+class PacketReceiver : public base::RefCountedThreadSafe<PacketReceiver> {
public:
// All packets received from the network should be delivered via this
// function.
- virtual void ReceivedPacket(const uint8* packet, int length) = 0;
+ virtual void ReceivedPacket(const uint8* packet, int length,
+ const base::Closure callback) = 0;
- protected:
virtual ~PacketReceiver() {}
};