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

Side by Side Diff: google_apis/gaia/gaia_auth_consumer.h

Issue 1644713002: Allow gaia auth fetcher to work with arbitrary clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 10 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
« no previous file with comments | « no previous file | google_apis/gaia/gaia_auth_fetcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 GOOGLE_APIS_GAIA_GAIA_AUTH_CONSUMER_H_ 5 #ifndef GOOGLE_APIS_GAIA_GAIA_AUTH_CONSUMER_H_
6 #define GOOGLE_APIS_GAIA_GAIA_AUTH_CONSUMER_H_ 6 #define GOOGLE_APIS_GAIA_GAIA_AUTH_CONSUMER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual ~GaiaAuthConsumer() {} 62 virtual ~GaiaAuthConsumer() {}
63 63
64 virtual void OnClientLoginSuccess(const ClientLoginResult& result) {} 64 virtual void OnClientLoginSuccess(const ClientLoginResult& result) {}
65 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) {} 65 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) {}
66 66
67 virtual void OnIssueAuthTokenSuccess(const std::string& service, 67 virtual void OnIssueAuthTokenSuccess(const std::string& service,
68 const std::string& auth_token) {} 68 const std::string& auth_token) {}
69 virtual void OnIssueAuthTokenFailure(const std::string& service, 69 virtual void OnIssueAuthTokenFailure(const std::string& service,
70 const GoogleServiceAuthError& error) {} 70 const GoogleServiceAuthError& error) {}
71 71
72 virtual void OnClientOAuthCode(const std::string& auth_code) {}
72 virtual void OnClientOAuthSuccess(const ClientOAuthResult& result) {} 73 virtual void OnClientOAuthSuccess(const ClientOAuthResult& result) {}
73 virtual void OnClientOAuthFailure(const GoogleServiceAuthError& error) {} 74 virtual void OnClientOAuthFailure(const GoogleServiceAuthError& error) {}
74 75
75 virtual void OnOAuth2RevokeTokenCompleted() {} 76 virtual void OnOAuth2RevokeTokenCompleted() {}
76 77
77 virtual void OnGetUserInfoSuccess(const UserInfoMap& data) {} 78 virtual void OnGetUserInfoSuccess(const UserInfoMap& data) {}
78 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) {} 79 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) {}
79 80
80 virtual void OnUberAuthTokenSuccess(const std::string& token) {} 81 virtual void OnUberAuthTokenSuccess(const std::string& token) {}
81 virtual void OnUberAuthTokenFailure(const GoogleServiceAuthError& error) {} 82 virtual void OnUberAuthTokenFailure(const GoogleServiceAuthError& error) {}
(...skipping 12 matching lines...) Expand all
94 const GoogleServiceAuthError& error) {} 95 const GoogleServiceAuthError& error) {}
95 96
96 virtual void OnListIdpSessionsSuccess(const std::string& login_hint) {} 97 virtual void OnListIdpSessionsSuccess(const std::string& login_hint) {}
97 virtual void OnListIdpSessionsError(const GoogleServiceAuthError& error) {} 98 virtual void OnListIdpSessionsError(const GoogleServiceAuthError& error) {}
98 99
99 virtual void OnGetTokenResponseSuccess(const ClientOAuthResult& result) {} 100 virtual void OnGetTokenResponseSuccess(const ClientOAuthResult& result) {}
100 virtual void OnGetTokenResponseError(const GoogleServiceAuthError& error) {} 101 virtual void OnGetTokenResponseError(const GoogleServiceAuthError& error) {}
101 }; 102 };
102 103
103 #endif // GOOGLE_APIS_GAIA_GAIA_AUTH_CONSUMER_H_ 104 #endif // GOOGLE_APIS_GAIA_GAIA_AUTH_CONSUMER_H_
OLDNEW
« no previous file with comments | « no previous file | google_apis/gaia/gaia_auth_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698