Chromium Code Reviews| Index: remoting/protocol/fake_authenticator.h |
| diff --git a/remoting/protocol/fake_authenticator.h b/remoting/protocol/fake_authenticator.h |
| index 1363f29a1857b16bdd6a9293811c49300401e2b9..bc847e49e00131dadf2e76bbc4590e10112996a4 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,22 @@ class FakeChannelAuthenticator : public ChannelAuthenticator { |
| private: |
| void CallCallback( |
| - const DoneCallback& done_callback, |
| net::Error error, |
| scoped_ptr<net::StreamSocket> socket); |
| + void OnAuthBytesWritten(int result); |
| + void OnAuthBytesRead(int result); |
| + |
| bool accept_; |
| bool async_; |
| + scoped_ptr<net::StreamSocket> socket_; |
| + DoneCallback done_callback_; |
| + net::Error error_; |
| + |
| + bool read_; |
| + bool written_; |
|
Wez
2012/02/22 22:51:38
nit: did_read_bytes_, did_write_bytes_?
Sergey Ulanov
2012/02/22 23:36:32
Done.
|
| + |
| base::WeakPtrFactory<FakeChannelAuthenticator> weak_factory_; |
| DISALLOW_COPY_AND_ASSIGN(FakeChannelAuthenticator); |