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

Side by Side Diff: remoting/protocol/v1_client_channel_authenticator.h

Issue 8743023: Separate Authenticator and Session unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_V1_CLIENT_CHANNEL_AUTHENTICATOR_H_ 5 #ifndef REMOTING_PROTOCOL_V1_CLIENT_CHANNEL_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_V1_CLIENT_CHANNEL_AUTHENTICATOR_H_ 6 #define REMOTING_PROTOCOL_V1_CLIENT_CHANNEL_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
14 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
15 #include "remoting/protocol/channel_authenticator.h" 15 #include "remoting/protocol/channel_authenticator.h"
16 16
17 namespace net { 17 namespace net {
18 class CertVerifier; 18 class CertVerifier;
19 class DrainableIOBuffer; 19 class DrainableIOBuffer;
20 class GrowableIOBuffer; 20 class GrowableIOBuffer;
21 class SSLClientSocket; 21 class SSLClientSocket;
22 } // namespace net 22 } // namespace net
23 23
24 namespace remoting { 24 namespace remoting {
25 namespace protocol { 25 namespace protocol {
26 26
27 class V1ClientChannelAuthenticator : public ChannelAuthenticator, 27 class V1ClientChannelAuthenticator : public ChannelAuthenticator,
28 public base::NonThreadSafe { 28 public base::NonThreadSafe {
29 public: 29 public:
30 V1ClientChannelAuthenticator(const std::string& host_cert, 30 V1ClientChannelAuthenticator(const std::string& host_cert,
31 const std::string& shared_secret); 31 const std::string& shared_secret);
32 virtual ~V1ClientChannelAuthenticator(); 32 virtual ~V1ClientChannelAuthenticator();
33 33
34 // ChannelAuthenticator implementation. 34 // ChannelAuthenticator implementation.
35 virtual void SecureAndAuthenticate( 35 virtual void SecureAndAuthenticate(
36 net::StreamSocket* socket, const DoneCallback& done_callback) OVERRIDE; 36 net::StreamSocket* socket, const DoneCallback& done_callback) OVERRIDE;
37 37
38 private: 38 private:
(...skipping 10 matching lines...) Expand all
49 scoped_ptr<net::CertVerifier> cert_verifier_; 49 scoped_ptr<net::CertVerifier> cert_verifier_;
50 scoped_refptr<net::DrainableIOBuffer> auth_write_buf_; 50 scoped_refptr<net::DrainableIOBuffer> auth_write_buf_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(V1ClientChannelAuthenticator); 52 DISALLOW_COPY_AND_ASSIGN(V1ClientChannelAuthenticator);
53 }; 53 };
54 54
55 } // namespace protocol 55 } // namespace protocol
56 } // namespace remoting 56 } // namespace remoting
57 57
58 #endif // REMOTING_PROTOCOL_V1_CLIENT_CHANNEL_AUTHENTICATOR_H_ 58 #endif // REMOTING_PROTOCOL_V1_CLIENT_CHANNEL_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « remoting/protocol/v1_authenticator_unittest.cc ('k') | remoting/protocol/v1_host_channel_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698