| 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 CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INITIAL
IZER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INITIAL
IZER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INITIAL
IZER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INITIAL
IZER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void OnGetTokensResponse(const std::string& refresh_token, | 64 void OnGetTokensResponse(const std::string& refresh_token, |
| 65 const std::string& access_token, | 65 const std::string& access_token, |
| 66 int expires_in_seconds) override; | 66 int expires_in_seconds) override; |
| 67 void OnRefreshTokenResponse(const std::string& access_token, | 67 void OnRefreshTokenResponse(const std::string& access_token, |
| 68 int expires_in_seconds) override; | 68 int expires_in_seconds) override; |
| 69 void OnGetUserInfoResponse( | 69 void OnGetUserInfoResponse( |
| 70 scoped_ptr<base::DictionaryValue> user_info) override; | 70 scoped_ptr<base::DictionaryValue> user_info) override; |
| 71 void OnOAuthError() override; | 71 void OnOAuthError() override; |
| 72 void OnNetworkError(int response_code) override; | 72 void OnNetworkError(int response_code) override; |
| 73 | 73 |
| 74 // EasyUnlockServiceObserver | 74 // EasyUnlockServiceObserver: |
| 75 void OnScreenlockStateChanged( | 75 void OnScreenlockStateChanged(proximity_auth::ScreenlockState state) override; |
| 76 EasyUnlockScreenlockStateHandler::State state) override; | |
| 77 | 76 |
| 78 CompleteCallback callback_; | 77 CompleteCallback callback_; |
| 79 scoped_ptr<gaia::GaiaOAuthClient> token_fetcher_; | 78 scoped_ptr<gaia::GaiaOAuthClient> token_fetcher_; |
| 80 | 79 |
| 81 UserContext user_context_; | 80 UserContext user_context_; |
| 82 bool random_key_used_; | 81 bool random_key_used_; |
| 83 | 82 |
| 84 base::WeakPtrFactory<BootstrapUserContextInitializer> weak_ptr_factory_; | 83 base::WeakPtrFactory<BootstrapUserContextInitializer> weak_ptr_factory_; |
| 85 | 84 |
| 86 static CompleteCallback* complete_callback_for_testing_; | 85 static CompleteCallback* complete_callback_for_testing_; |
| 87 | 86 |
| 88 DISALLOW_COPY_AND_ASSIGN(BootstrapUserContextInitializer); | 87 DISALLOW_COPY_AND_ASSIGN(BootstrapUserContextInitializer); |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 } // namespace chromeos | 90 } // namespace chromeos |
| 92 | 91 |
| 93 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INIT
IALIZER_H_ | 92 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_BOOTSTRAP_USER_CONTEXT_INIT
IALIZER_H_ |
| OLD | NEW |