OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HOST_TOKEN_VALIDATOR_BASE_H_ | 5 #ifndef REMOTING_HOST_TOKEN_VALIDATOR_BASE_H_ |
6 #define REMOTING_HOST_TOKEN_VALIDATOR_BASE_H_ | 6 #define REMOTING_HOST_TOKEN_VALIDATOR_BASE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "net/url_request/url_request.h" | 11 #include "net/url_request/url_request.h" |
11 #include "net/url_request/url_request_context_getter.h" | 12 #include "net/url_request/url_request_context_getter.h" |
12 #include "remoting/host/third_party_auth_config.h" | 13 #include "remoting/host/third_party_auth_config.h" |
13 #include "remoting/protocol/token_validator.h" | 14 #include "remoting/protocol/token_validator.h" |
14 #include "url/gurl.h" | 15 #include "url/gurl.h" |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 class ClientCertStore; | 18 class ClientCertStore; |
18 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; | 19 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 base::Callback<void(const std::string& shared_secret)> on_token_validated_; | 68 base::Callback<void(const std::string& shared_secret)> on_token_validated_; |
68 | 69 |
69 base::WeakPtrFactory<TokenValidatorBase> weak_factory_; | 70 base::WeakPtrFactory<TokenValidatorBase> weak_factory_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(TokenValidatorBase); | 72 DISALLOW_COPY_AND_ASSIGN(TokenValidatorBase); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace remoting | 75 } // namespace remoting |
75 | 76 |
76 #endif // REMOTING_HOST_TOKEN_VALIDATOR_BASE_H | 77 #endif // REMOTING_HOST_TOKEN_VALIDATOR_BASE_H |
OLD | NEW |