| 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 <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "crypto/random.h" | 18 #include "crypto/random.h" |
| 19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 20 #include "net/base/escape.h" | 20 #include "net/base/escape.h" |
| 21 #include "net/url_request/url_fetcher.h" | 21 #include "net/url_request/url_fetcher.h" |
| 22 #include "net/url_request/url_fetcher_delegate.h" | 22 #include "net/url_request/url_fetcher_delegate.h" |
| 23 #include "net/url_request/url_request_status.h" | 23 #include "net/url_request/url_request_status.h" |
| 24 #include "remoting/base/rsa_key_pair.h" | 24 #include "remoting/base/rsa_key_pair.h" |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 TokenValidatorFactoryImpl::CreateTokenValidator( | 182 TokenValidatorFactoryImpl::CreateTokenValidator( |
| 183 const std::string& local_jid, | 183 const std::string& local_jid, |
| 184 const std::string& remote_jid) { | 184 const std::string& remote_jid) { |
| 185 return scoped_ptr<protocol::ThirdPartyHostAuthenticator::TokenValidator>( | 185 return scoped_ptr<protocol::ThirdPartyHostAuthenticator::TokenValidator>( |
| 186 new TokenValidatorImpl(token_url_, token_validation_url_, key_pair_, | 186 new TokenValidatorImpl(token_url_, token_validation_url_, key_pair_, |
| 187 local_jid, remote_jid, | 187 local_jid, remote_jid, |
| 188 request_context_getter_)); | 188 request_context_getter_)); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace remoting | 191 } // namespace remoting |
| OLD | NEW |