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

Side by Side Diff: google_apis/gaia/gaia_oauth_client.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/gaia_oauth_client.h" 5 #include "google_apis/gaia/gaia_oauth_client.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "google_apis/gaia/gaia_urls.h" 12 #include "google_apis/gaia/gaia_urls.h"
13 #include "googleurl/src/gurl.h"
14 #include "net/base/escape.h" 13 #include "net/base/escape.h"
15 #include "net/http/http_status_code.h" 14 #include "net/http/http_status_code.h"
16 #include "net/url_request/url_fetcher.h" 15 #include "net/url_request/url_fetcher.h"
17 #include "net/url_request/url_fetcher_delegate.h" 16 #include "net/url_request/url_fetcher_delegate.h"
18 #include "net/url_request/url_request_context_getter.h" 17 #include "net/url_request/url_request_context_getter.h"
18 #include "url/gurl.h"
19 19
20 namespace { 20 namespace {
21 const char kAccessTokenValue[] = "access_token"; 21 const char kAccessTokenValue[] = "access_token";
22 const char kRefreshTokenValue[] = "refresh_token"; 22 const char kRefreshTokenValue[] = "refresh_token";
23 const char kExpiresInValue[] = "expires_in"; 23 const char kExpiresInValue[] = "expires_in";
24 } 24 }
25 25
26 namespace gaia { 26 namespace gaia {
27 27
28 // Use a non-zero number, so unit tests can differentiate the URLFetcher used by 28 // Use a non-zero number, so unit tests can differentiate the URLFetcher used by
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 return core_->GetUserEmail(access_token, max_retries, delegate); 328 return core_->GetUserEmail(access_token, max_retries, delegate);
329 } 329 }
330 330
331 void GaiaOAuthClient::GetTokenInfo(const std::string& access_token, 331 void GaiaOAuthClient::GetTokenInfo(const std::string& access_token,
332 int max_retries, 332 int max_retries,
333 Delegate* delegate) { 333 Delegate* delegate) {
334 return core_->GetTokenInfo(access_token, max_retries, delegate); 334 return core_->GetTokenInfo(access_token, max_retries, delegate);
335 } 335 }
336 336
337 } // namespace gaia 337 } // namespace gaia
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_auth_util_unittest.cc ('k') | google_apis/gaia/gaia_oauth_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698