| Index: jingle/glue/pseudotcp_adapter.cc
|
| diff --git a/jingle/glue/pseudotcp_adapter.cc b/jingle/glue/pseudotcp_adapter.cc
|
| index cb6ed91a96ddb5c2e50cae37eddd06b55d6b2014..9eac9331f09819a04b1fd4d1d46f9b349c88553d 100644
|
| --- a/jingle/glue/pseudotcp_adapter.cc
|
| +++ b/jingle/glue/pseudotcp_adapter.cc
|
| @@ -385,6 +385,13 @@ PseudoTcpAdapter::PseudoTcpAdapter(net::Socket* socket)
|
|
|
| PseudoTcpAdapter::~PseudoTcpAdapter() {
|
| Disconnect();
|
| + if (!destruction_callback_.is_null())
|
| + destruction_callback_.Run();
|
| +}
|
| +
|
| +void PseudoTcpAdapter::SetOnDestroyedCallback(
|
| + const base::Closure& callback) {
|
| + destruction_callback_ = callback;
|
| }
|
|
|
| int PseudoTcpAdapter::Read(net::IOBuffer* buffer, int buffer_size,
|
|
|