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

Unified Diff: remoting/protocol/channel_authenticator.h

Issue 1197853003: Add P2PDatagramSocket and P2PStreamSocket interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/channel_authenticator.h
diff --git a/remoting/protocol/channel_authenticator.h b/remoting/protocol/channel_authenticator.h
index 8bef908df5cc810777fe2e2ec2239efd505681e0..e29e7d8cc5850244b4ff603f37d7307715e8e954 100644
--- a/remoting/protocol/channel_authenticator.h
+++ b/remoting/protocol/channel_authenticator.h
@@ -9,20 +9,18 @@
#include "base/callback_forward.h"
-namespace net {
-class StreamSocket;
-} // namespace net
-
namespace remoting {
namespace protocol {
+class P2PStreamSocket;
+
// Interface for channel authentications that perform channel-level
// authentication. Depending on implementation channel authenticators
// may also establish SSL connection. Each instance of this interface
// 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(int error, scoped_ptr<P2PStreamSocket>)>
DoneCallback;
virtual ~ChannelAuthenticator() {}
@@ -31,7 +29,7 @@ class ChannelAuthenticator {
// 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,
+ scoped_ptr<P2PStreamSocket> socket,
const DoneCallback& done_callback) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698