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

Side by Side Diff: chrome/common/net/gaia/gaia_oauth_client.cc

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/net/gaia/gaia_oauth_client.h" 5 #include "chrome/common/net/gaia/gaia_oauth_client.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/common/net/http_return.h" 10 #include "chrome/common/net/http_return.h"
11 #include "chrome/common/net/url_fetcher.h" 11 #include "content/common/url_fetcher.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/base/escape.h" 13 #include "net/base/escape.h"
14 #include "net/url_request/url_request_context_getter.h" 14 #include "net/url_request/url_request_context_getter.h"
15 15
16 namespace { 16 namespace {
17 const char kAccessTokenValue[] = "access_token"; 17 const char kAccessTokenValue[] = "access_token";
18 const char kRefreshTokenValue[] = "refresh_token"; 18 const char kRefreshTokenValue[] = "refresh_token";
19 const char kExpiresInValue[] = "expires_in"; 19 const char kExpiresInValue[] = "expires_in";
20 } 20 }
21 21
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 const std::string& refresh_token, 208 const std::string& refresh_token,
209 int max_retries, 209 int max_retries,
210 Delegate* delegate) { 210 Delegate* delegate) {
211 return core_->RefreshToken(oauth_client_info, 211 return core_->RefreshToken(oauth_client_info,
212 refresh_token, 212 refresh_token,
213 max_retries, 213 max_retries,
214 delegate); 214 delegate);
215 } 215 }
216 216
217 } // namespace gaia 217 } // namespace gaia
OLDNEW
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc ('k') | chrome/common/net/gaia/gaia_oauth_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698