OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "remoting/host/token_validator_factory_impl.h" | 5 #include "remoting/host/token_validator_factory_impl.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 class TokenValidatorImpl : public TokenValidatorBase { | 38 class TokenValidatorImpl : public TokenValidatorBase { |
39 public: | 39 public: |
40 TokenValidatorImpl( | 40 TokenValidatorImpl( |
41 const ThirdPartyAuthConfig& third_party_auth_config, | 41 const ThirdPartyAuthConfig& third_party_auth_config, |
42 scoped_refptr<RsaKeyPair> key_pair, | 42 scoped_refptr<RsaKeyPair> key_pair, |
43 const std::string& local_jid, | 43 const std::string& local_jid, |
44 const std::string& remote_jid, | 44 const std::string& remote_jid, |
45 scoped_refptr<net::URLRequestContextGetter> request_context_getter); | 45 scoped_refptr<net::URLRequestContextGetter> request_context_getter); |
46 | 46 |
47 protected: | 47 protected: |
48 virtual void StartValidateRequest(const std::string& token) OVERRIDE; | 48 virtual void StartValidateRequest(const std::string& token) override; |
49 | 49 |
50 private: | 50 private: |
51 static std::string CreateScope(const std::string& local_jid, | 51 static std::string CreateScope(const std::string& local_jid, |
52 const std::string& remote_jid); | 52 const std::string& remote_jid); |
53 | 53 |
54 std::string post_body_; | 54 std::string post_body_; |
55 scoped_refptr<RsaKeyPair> key_pair_; | 55 scoped_refptr<RsaKeyPair> key_pair_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(TokenValidatorImpl); | 57 DISALLOW_COPY_AND_ASSIGN(TokenValidatorImpl); |
58 }; | 58 }; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 TokenValidatorFactoryImpl::CreateTokenValidator( | 121 TokenValidatorFactoryImpl::CreateTokenValidator( |
122 const std::string& local_jid, | 122 const std::string& local_jid, |
123 const std::string& remote_jid) { | 123 const std::string& remote_jid) { |
124 return make_scoped_ptr( | 124 return make_scoped_ptr( |
125 new TokenValidatorImpl(third_party_auth_config_, | 125 new TokenValidatorImpl(third_party_auth_config_, |
126 key_pair_, local_jid, remote_jid, | 126 key_pair_, local_jid, remote_jid, |
127 request_context_getter_)); | 127 request_context_getter_)); |
128 } | 128 } |
129 | 129 |
130 } // namespace remoting | 130 } // namespace remoting |
OLD | NEW |