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

Unified Diff: remoting/protocol/channel_authenticator.h

Issue 551173004: Move PseudoTCP and channel auth out of LibjingleTransportFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_dgrams
Patch Set: Created 6 years, 3 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
« no previous file with comments | « remoting/protocol/authenticator_test_base.cc ('k') | remoting/protocol/channel_dispatcher_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/channel_authenticator.h
diff --git a/remoting/protocol/channel_authenticator.h b/remoting/protocol/channel_authenticator.h
index 7466b090716c7eb07c49defb0b48d31e7036acd1..8bef908df5cc810777fe2e2ec2239efd505681e0 100644
--- a/remoting/protocol/channel_authenticator.h
+++ b/remoting/protocol/channel_authenticator.h
@@ -8,7 +8,6 @@
#include <string>
#include "base/callback_forward.h"
-#include "net/base/net_errors.h"
namespace net {
class StreamSocket;
@@ -23,14 +22,14 @@ namespace protocol {
// should be used only once for one channel.
class ChannelAuthenticator {
public:
- typedef base::Callback<void(net::Error error, scoped_ptr<net::StreamSocket>)>
+ typedef base::Callback<void(int error, scoped_ptr<net::StreamSocket>)>
DoneCallback;
virtual ~ChannelAuthenticator() {}
- // Start authentication of the given |socket|. |done_callback| is
- // called when authentication is finished. Callback may be invoked
- // before this method returns.
+ // Start authentication of the given |socket|. |done_callback| is called when
+ // authentication is finished. Callback may be invoked before this method
+ // returns, and may delete the calling authenticator.
virtual void SecureAndAuthenticate(
scoped_ptr<net::StreamSocket> socket,
const DoneCallback& done_callback) = 0;
« no previous file with comments | « remoting/protocol/authenticator_test_base.cc ('k') | remoting/protocol/channel_dispatcher_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698