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

Side by Side Diff: chrome/browser/net/gaia/gaia_oauth_fetcher.h

Issue 60733019: This is the third CL of several that will eventually replace TokenService with (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 1 month 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 #ifndef CHROME_BROWSER_NET_GAIA_GAIA_OAUTH_FETCHER_H_ 5 #ifndef CHROME_BROWSER_NET_GAIA_GAIA_OAUTH_FETCHER_H_
6 #define CHROME_BROWSER_NET_GAIA_GAIA_OAUTH_FETCHER_H_ 6 #define CHROME_BROWSER_NET_GAIA_GAIA_OAUTH_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Obtains an OAuth2 access token using Gaia's OAuth1-to-OAuth2 bridge. 82 // Obtains an OAuth2 access token using Gaia's OAuth1-to-OAuth2 bridge.
83 // 83 //
84 // oauth1_access_token and oauth1_access_token_secret are from 84 // oauth1_access_token and oauth1_access_token_secret are from
85 // OAuthGetAccessToken's result. 85 // OAuthGetAccessToken's result.
86 // 86 //
87 // wrap_token_duration is typically one hour, 87 // wrap_token_duration is typically one hour,
88 // which is also the max -- you can only decrease it. 88 // which is also the max -- you can only decrease it.
89 // 89 //
90 // service_scope will be used as a service name. For example, Chromium Sync 90 // service_scope will be used as a service name. For example, Chromium Sync
91 // uses https://www.googleapis.com/auth/chromesync for its OAuth2 service 91 // uses https://www.googleapis.com/auth/chromesync for its OAuth2 service
92 // scope here as well as for its service name in TokenService. 92 // scope.
93 virtual void StartOAuthWrapBridge( 93 virtual void StartOAuthWrapBridge(
94 const std::string& oauth1_access_token, 94 const std::string& oauth1_access_token,
95 const std::string& oauth1_access_token_secret, 95 const std::string& oauth1_access_token_secret,
96 const std::string& wrap_token_duration, 96 const std::string& wrap_token_duration,
97 const std::string& service_scope); 97 const std::string& service_scope);
98 98
99 // Obtains user information related to an OAuth2 access token 99 // Obtains user information related to an OAuth2 access token
100 // 100 //
101 // oauth2_access_token is from OAuthWrapBridge's result. 101 // oauth2_access_token is from OAuthWrapBridge's result.
102 virtual void StartUserInfo(const std::string& oauth2_access_token); 102 virtual void StartUserInfo(const std::string& oauth2_access_token);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 std::string request_body_; 223 std::string request_body_;
224 std::string request_headers_; 224 std::string request_headers_;
225 std::string service_scope_; 225 std::string service_scope_;
226 bool fetch_pending_; 226 bool fetch_pending_;
227 RequestType auto_fetch_limit_; 227 RequestType auto_fetch_limit_;
228 228
229 DISALLOW_COPY_AND_ASSIGN(GaiaOAuthFetcher); 229 DISALLOW_COPY_AND_ASSIGN(GaiaOAuthFetcher);
230 }; 230 };
231 231
232 #endif // CHROME_BROWSER_NET_GAIA_GAIA_OAUTH_FETCHER_H_ 232 #endif // CHROME_BROWSER_NET_GAIA_GAIA_OAUTH_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service.cc ('k') | chrome/browser/sync/abstract_profile_sync_service_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698