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

Side by Side Diff: chrome/common/net/gaia/gaia_auth_consumer.h

Issue 8632005: Part 1 of work to do user sign in based on OAuth2: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 #ifndef CHROME_COMMON_NET_GAIA_GAIA_AUTH_CONSUMER_H_ 5 #ifndef CHROME_COMMON_NET_GAIA_GAIA_AUTH_CONSUMER_H_
6 #define CHROME_COMMON_NET_GAIA_GAIA_AUTH_CONSUMER_H_ 6 #define CHROME_COMMON_NET_GAIA_GAIA_AUTH_CONSUMER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 virtual ~GaiaAuthConsumer() {} 35 virtual ~GaiaAuthConsumer() {}
36 36
37 virtual void OnClientLoginSuccess(const ClientLoginResult& result) {} 37 virtual void OnClientLoginSuccess(const ClientLoginResult& result) {}
38 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) {} 38 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) {}
39 39
40 virtual void OnIssueAuthTokenSuccess(const std::string& service, 40 virtual void OnIssueAuthTokenSuccess(const std::string& service,
41 const std::string& auth_token) {} 41 const std::string& auth_token) {}
42 virtual void OnIssueAuthTokenFailure(const std::string& service, 42 virtual void OnIssueAuthTokenFailure(const std::string& service,
43 const GoogleServiceAuthError& error) {} 43 const GoogleServiceAuthError& error) {}
44 44
45 virtual void OnOAuthLoginTokenSuccess(const std::string& refresh_token,
46 const std::string& access_token,
47 int expires_in_secs) {}
48 virtual void OnOAuthLoginTokenFailure(const GoogleServiceAuthError& error) {}
49
45 virtual void OnGetUserInfoSuccess(const std::string& key, 50 virtual void OnGetUserInfoSuccess(const std::string& key,
46 const std::string& value) {} 51 const std::string& value) {}
47 virtual void OnGetUserInfoKeyNotFound(const std::string& key) {} 52 virtual void OnGetUserInfoKeyNotFound(const std::string& key) {}
48 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) {} 53 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) {}
49 54
50 virtual void OnTokenAuthSuccess(const std::string& data) {} 55 virtual void OnTokenAuthSuccess(const std::string& data) {}
51 virtual void OnTokenAuthFailure(const GoogleServiceAuthError& error) {} 56 virtual void OnTokenAuthFailure(const GoogleServiceAuthError& error) {}
52 57
53 virtual void OnMergeSessionSuccess(const std::string& data) {} 58 virtual void OnMergeSessionSuccess(const std::string& data) {}
54 virtual void OnMergeSessionFailure(const GoogleServiceAuthError& error) {} 59 virtual void OnMergeSessionFailure(const GoogleServiceAuthError& error) {}
55 }; 60 };
56 61
57 #endif // CHROME_COMMON_NET_GAIA_GAIA_AUTH_CONSUMER_H_ 62 #endif // CHROME_COMMON_NET_GAIA_GAIA_AUTH_CONSUMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698