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

Side by Side Diff: remoting/host/token_validator_base.h

Issue 2369193002: [Remoting Host] Select Latest Valid Cert (Closed)
Patch Set: Remove the [valid_start, inf) case Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/token_validator_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 bool* defer_redirect) override; 50 bool* defer_redirect) override;
51 void OnCertificateRequested( 51 void OnCertificateRequested(
52 net::URLRequest* source, 52 net::URLRequest* source,
53 net::SSLCertRequestInfo* cert_request_info) override; 53 net::SSLCertRequestInfo* cert_request_info) override;
54 54
55 protected: 55 protected:
56 void OnCertificatesSelected(net::CertificateList* selected_certs, 56 void OnCertificatesSelected(net::CertificateList* selected_certs,
57 net::ClientCertStore* unused); 57 net::ClientCertStore* unused);
58 58
59 virtual void StartValidateRequest(const std::string& token) = 0; 59 virtual void StartValidateRequest(const std::string& token) = 0;
60 virtual void ContinueWithCertificate(net::X509Certificate* client_cert,
61 net::SSLPrivateKey* client_private_key);
60 virtual bool IsValidScope(const std::string& token_scope); 62 virtual bool IsValidScope(const std::string& token_scope);
61 std::string ProcessResponse(int net_result); 63 std::string ProcessResponse(int net_result);
62 64
63 // Constructor parameters. 65 // Constructor parameters.
64 ThirdPartyAuthConfig third_party_auth_config_; 66 ThirdPartyAuthConfig third_party_auth_config_;
65 std::string token_scope_; 67 std::string token_scope_;
66 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 68 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
67 69
68 // URLRequest related fields. 70 // URLRequest related fields.
69 std::unique_ptr<net::URLRequest> request_; 71 std::unique_ptr<net::URLRequest> request_;
(...skipping 15 matching lines...) Expand all
85 base::Callback<void(const std::string& shared_secret)> on_token_validated_; 87 base::Callback<void(const std::string& shared_secret)> on_token_validated_;
86 88
87 base::WeakPtrFactory<TokenValidatorBase> weak_factory_; 89 base::WeakPtrFactory<TokenValidatorBase> weak_factory_;
88 90
89 DISALLOW_COPY_AND_ASSIGN(TokenValidatorBase); 91 DISALLOW_COPY_AND_ASSIGN(TokenValidatorBase);
90 }; 92 };
91 93
92 } // namespace remoting 94 } // namespace remoting
93 95
94 #endif // REMOTING_HOST_TOKEN_VALIDATOR_BASE_H 96 #endif // REMOTING_HOST_TOKEN_VALIDATOR_BASE_H
OLDNEW
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/token_validator_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698