OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_OAUTH_HELPER_H_ | 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_OAUTH_HELPER_H_ |
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_OAUTH_HELPER_H_ | 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_OAUTH_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 }; | 35 }; |
36 | 36 |
37 explicit SigninOAuthHelper(net::URLRequestContextGetter* getter, | 37 explicit SigninOAuthHelper(net::URLRequestContextGetter* getter, |
38 const std::string& session_index, | 38 const std::string& session_index, |
39 const std::string& signin_scoped_device_id, | 39 const std::string& signin_scoped_device_id, |
40 Consumer* consumer); | 40 Consumer* consumer); |
41 virtual ~SigninOAuthHelper(); | 41 virtual ~SigninOAuthHelper(); |
42 | 42 |
43 private: | 43 private: |
44 // Overridden from GaiaAuthConsumer. | 44 // Overridden from GaiaAuthConsumer. |
45 virtual void OnClientOAuthSuccess(const ClientOAuthResult& result) OVERRIDE; | 45 virtual void OnClientOAuthSuccess(const ClientOAuthResult& result) override; |
46 virtual void OnClientOAuthFailure(const GoogleServiceAuthError& error) | 46 virtual void OnClientOAuthFailure(const GoogleServiceAuthError& error) |
47 OVERRIDE; | 47 override; |
48 virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE; | 48 virtual void OnClientLoginSuccess(const ClientLoginResult& result) override; |
49 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) | 49 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) |
50 OVERRIDE; | 50 override; |
51 virtual void OnGetUserInfoSuccess(const UserInfoMap& data) OVERRIDE; | 51 virtual void OnGetUserInfoSuccess(const UserInfoMap& data) override; |
52 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) | 52 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) |
53 OVERRIDE; | 53 override; |
54 | 54 |
55 GaiaAuthFetcher gaia_auth_fetcher_; | 55 GaiaAuthFetcher gaia_auth_fetcher_; |
56 std::string refresh_token_; | 56 std::string refresh_token_; |
57 Consumer* consumer_; | 57 Consumer* consumer_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(SigninOAuthHelper); | 59 DISALLOW_COPY_AND_ASSIGN(SigninOAuthHelper); |
60 }; | 60 }; |
61 | 61 |
62 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_OAUTH_HELPER_H_ | 62 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_OAUTH_HELPER_H_ |
OLD | NEW |