Index: remoting/protocol/channel_authenticator.h |
diff --git a/remoting/protocol/channel_authenticator.h b/remoting/protocol/channel_authenticator.h |
index 8bef908df5cc810777fe2e2ec2239efd505681e0..7466b090716c7eb07c49defb0b48d31e7036acd1 100644 |
--- a/remoting/protocol/channel_authenticator.h |
+++ b/remoting/protocol/channel_authenticator.h |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "base/callback_forward.h" |
+#include "net/base/net_errors.h" |
namespace net { |
class StreamSocket; |
@@ -22,14 +23,14 @@ |
// should be used only once for one channel. |
class ChannelAuthenticator { |
public: |
- typedef base::Callback<void(int error, scoped_ptr<net::StreamSocket>)> |
+ typedef base::Callback<void(net::Error 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, and may delete the calling authenticator. |
+ // Start authentication of the given |socket|. |done_callback| is |
+ // called when authentication is finished. Callback may be invoked |
+ // before this method returns. |
virtual void SecureAndAuthenticate( |
scoped_ptr<net::StreamSocket> socket, |
const DoneCallback& done_callback) = 0; |