OLD | NEW |
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/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" | 13 #include "googleurl/src/gurl.h" |
14 #include "net/base/escape.h" | 14 #include "net/base/escape.h" |
15 #include "net/http/http_status_code.h" | 15 #include "net/http/http_status_code.h" |
16 #include "net/url_request/url_fetcher.h" | 16 #include "net/url_request/url_fetcher.h" |
17 #include "net/url_request/url_fetcher_delegate.h" | 17 #include "net/url_request/url_fetcher_delegate.h" |
18 #include "net/url_request/url_request_context_getter.h" | 18 #include "net/url_request/url_request_context_getter.h" |
19 | 19 |
20 namespace { | 20 namespace { |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |