Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1219)

Unified Diff: remoting/protocol/fake_authenticator.h

Issue 9433027: Delete Session and SessionManager object synchronously. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add tests Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698