| Index: jingle/glue/pseudotcp_adapter.cc
|
| diff --git a/jingle/glue/pseudotcp_adapter.cc b/jingle/glue/pseudotcp_adapter.cc
|
| index 7458f89cd3383a653f0cace336357a6ac05a4572..40e99e36c2a12544a9c53c2af8db65806b3ee12b 100644
|
| --- a/jingle/glue/pseudotcp_adapter.cc
|
| +++ b/jingle/glue/pseudotcp_adapter.cc
|
| @@ -26,7 +26,6 @@ class PseudoTcpAdapter::Core : public cricket::IPseudoTcpNotify,
|
| public base::RefCounted<Core> {
|
| public:
|
| Core(net::Socket* socket);
|
| - virtual ~Core();
|
|
|
| // Functions used to implement net::StreamSocket.
|
| int Read(net::IOBuffer* buffer, int buffer_size,
|
| @@ -57,6 +56,9 @@ class PseudoTcpAdapter::Core : public cricket::IPseudoTcpNotify,
|
| void DeleteSocket();
|
|
|
| private:
|
| + friend class base::RefCounted<Core>;
|
| + virtual ~Core();
|
| +
|
| // These are invoked by the underlying Socket, and may trigger callbacks.
|
| // They hold a reference to |this| while running, to protect from deletion.
|
| void OnRead(int result);
|
|
|