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

Side by Side Diff: google_apis/gaia/oauth_request_signer.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "google_apis/gaia/oauth_request_signer.h" 5 #include "google_apis/gaia/oauth_request_signer.h"
6 6
7 #include <cctype> 7 #include <cctype>
8 #include <cstddef> 8 #include <cstddef>
9 #include <cstdlib> 9 #include <cstdlib>
10 #include <cstring> 10 #include <cstring>
11 #include <ctime> 11 #include <ctime>
12 #include <map> 12 #include <map>
13 #include <string> 13 #include <string>
14 14
15 #include "base/base64.h" 15 #include "base/base64.h"
16 #include "base/format_macros.h" 16 #include "base/format_macros.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/rand_util.h" 18 #include "base/rand_util.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "crypto/hmac.h" 22 #include "crypto/hmac.h"
23 #include "googleurl/src/gurl.h" 23 #include "url/gurl.h"
24 24
25 namespace { 25 namespace {
26 26
27 static const int kHexBase = 16; 27 static const int kHexBase = 16;
28 static char kHexDigits[] = "0123456789ABCDEF"; 28 static char kHexDigits[] = "0123456789ABCDEF";
29 static const size_t kHmacDigestLength = 20; 29 static const size_t kHmacDigestLength = 20;
30 static const int kMaxNonceLength = 30; 30 static const int kMaxNonceLength = 30;
31 static const int kMinNonceLength = 15; 31 static const int kMinNonceLength = 15;
32 32
33 static const char kOAuthConsumerKeyLabel[] = "oauth_consumer_key"; 33 static const char kOAuthConsumerKeyLabel[] = "oauth_consumer_key";
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 signed_text += 450 signed_text +=
451 base::StringPrintf( 451 base::StringPrintf(
452 "%s=\"%s\"", 452 "%s=\"%s\"",
453 OAuthRequestSigner::Encode(param->first).c_str(), 453 OAuthRequestSigner::Encode(param->first).c_str(),
454 OAuthRequestSigner::Encode(param->second).c_str()); 454 OAuthRequestSigner::Encode(param->second).c_str());
455 } 455 }
456 *signed_text_return = signed_text; 456 *signed_text_return = signed_text;
457 } 457 }
458 return is_signed; 458 return is_signed;
459 } 459 }
OLDNEW
« no previous file with comments | « google_apis/gaia/oauth2_access_token_fetcher_unittest.cc ('k') | google_apis/gaia/oauth_request_signer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698