| Index: remoting/protocol/fake_authenticator.h
|
| diff --git a/remoting/protocol/fake_authenticator.h b/remoting/protocol/fake_authenticator.h
|
| index 1363f29a1857b16bdd6a9293811c49300401e2b9..2e60758996d9a42969f7a47cae71bc0d827042a1 100644
|
| --- a/remoting/protocol/fake_authenticator.h
|
| +++ b/remoting/protocol/fake_authenticator.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_
|
| #define REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_
|
|
|
| +#include "base/callback.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "remoting/protocol/authenticator.h"
|
| #include "remoting/protocol/channel_authenticator.h"
|
| @@ -24,13 +25,21 @@ class FakeChannelAuthenticator : public ChannelAuthenticator {
|
|
|
| private:
|
| void CallCallback(
|
| - const DoneCallback& done_callback,
|
| net::Error error,
|
| scoped_ptr<net::StreamSocket> socket);
|
|
|
| - bool accept_;
|
| + void OnAuthBytesWritten(int result);
|
| + void OnAuthBytesRead(int result);
|
| +
|
| + net::Error result_;
|
| bool async_;
|
|
|
| + scoped_ptr<net::StreamSocket> socket_;
|
| + DoneCallback done_callback_;
|
| +
|
| + bool did_read_bytes_;
|
| + bool did_write_bytes_;
|
| +
|
| base::WeakPtrFactory<FakeChannelAuthenticator> weak_factory_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(FakeChannelAuthenticator);
|
|
|