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

Side by Side Diff: remoting/host/token_validator_factory_impl.cc

Issue 18919005: Migrate from googleurl/ includes to url/ ones in the remaining top-level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make googleurl a temp include rule - to prevent others including it again Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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/strings/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"
20 #include "net/base/escape.h" 19 #include "net/base/escape.h"
21 #include "net/url_request/url_fetcher.h" 20 #include "net/url_request/url_fetcher.h"
22 #include "net/url_request/url_fetcher_delegate.h" 21 #include "net/url_request/url_fetcher_delegate.h"
23 #include "net/url_request/url_request_status.h" 22 #include "net/url_request/url_request_status.h"
24 #include "remoting/base/rsa_key_pair.h" 23 #include "remoting/base/rsa_key_pair.h"
24 #include "url/gurl.h"
25 25
26 namespace { 26 namespace {
27 27
28 // Length in bytes of the cryptographic nonce used to salt the token scope. 28 // Length in bytes of the cryptographic nonce used to salt the token scope.
29 const size_t kNonceLength = 16; // 128 bits. 29 const size_t kNonceLength = 16; // 128 bits.
30 30
31 } 31 }
32 32
33 namespace remoting { 33 namespace remoting {
34 34
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « remoting/host/setup/oauth_helper.cc ('k') | remoting/host/token_validator_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698