| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SIGNIN_HELPER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SIGNIN_HELPER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SIGNIN_HELPER_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SIGNIN_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void StartWalletCookieValueFetch(); | 51 void StartWalletCookieValueFetch(); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 // Called if a service authentication error occurs. | 54 // Called if a service authentication error occurs. |
| 55 void OnServiceError(const GoogleServiceAuthError& error); | 55 void OnServiceError(const GoogleServiceAuthError& error); |
| 56 | 56 |
| 57 // Called if any other error occurs. | 57 // Called if any other error occurs. |
| 58 void OnOtherError(); | 58 void OnOtherError(); |
| 59 | 59 |
| 60 // URLFetcherDelegate implementation. | 60 // URLFetcherDelegate implementation. |
| 61 virtual void OnURLFetchComplete(const net::URLFetcher* fetcher) OVERRIDE; | 61 virtual void OnURLFetchComplete(const net::URLFetcher* fetcher) override; |
| 62 | 62 |
| 63 // Callback for when the Google Wallet cookie has been retrieved. | 63 // Callback for when the Google Wallet cookie has been retrieved. |
| 64 void ReturnWalletCookieValue(const std::string& cookie_value); | 64 void ReturnWalletCookieValue(const std::string& cookie_value); |
| 65 | 65 |
| 66 // Should be valid throughout the lifetime of the instance. | 66 // Should be valid throughout the lifetime of the instance. |
| 67 WalletSigninHelperDelegate* const delegate_; | 67 WalletSigninHelperDelegate* const delegate_; |
| 68 | 68 |
| 69 // URLRequestContextGetter to be used for URLFetchers. | 69 // URLRequestContextGetter to be used for URLFetchers. |
| 70 net::URLRequestContextGetter* const getter_; | 70 net::URLRequestContextGetter* const getter_; |
| 71 | 71 |
| 72 // While passive login/merge session URL fetches are going on: | 72 // While passive login/merge session URL fetches are going on: |
| 73 scoped_ptr<net::URLFetcher> url_fetcher_; | 73 scoped_ptr<net::URLFetcher> url_fetcher_; |
| 74 | 74 |
| 75 base::WeakPtrFactory<WalletSigninHelper> weak_ptr_factory_; | 75 base::WeakPtrFactory<WalletSigninHelper> weak_ptr_factory_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(WalletSigninHelper); | 77 DISALLOW_COPY_AND_ASSIGN(WalletSigninHelper); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace wallet | 80 } // namespace wallet |
| 81 } // namespace autofill | 81 } // namespace autofill |
| 82 | 82 |
| 83 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SIGNIN_HELPER_H_ | 83 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_WALLET_WALLET_SIGNIN_HELPER_H_ |
| OLD | NEW |