| OLD | NEW |
| 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 CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual ~EulaScreen(); | 25 virtual ~EulaScreen(); |
| 26 | 26 |
| 27 // WizardScreen implementation: | 27 // WizardScreen implementation: |
| 28 virtual void PrepareToShow() OVERRIDE; | 28 virtual void PrepareToShow() OVERRIDE; |
| 29 virtual void Show() OVERRIDE; | 29 virtual void Show() OVERRIDE; |
| 30 virtual void Hide() OVERRIDE; | 30 virtual void Hide() OVERRIDE; |
| 31 virtual std::string GetName() const OVERRIDE; | 31 virtual std::string GetName() const OVERRIDE; |
| 32 | 32 |
| 33 // EulaScreenActor::Delegate implementation: | 33 // EulaScreenActor::Delegate implementation: |
| 34 virtual GURL GetOemEulaUrl() const OVERRIDE; | 34 virtual GURL GetOemEulaUrl() const OVERRIDE; |
| 35 virtual void OnExit(bool accepted, | 35 virtual void OnExit(bool accepted, bool usage_stats_enabled) OVERRIDE; |
| 36 bool usage_stats_enabled, | |
| 37 bool rlz_enabled) OVERRIDE; | |
| 38 virtual void InitiatePasswordFetch() OVERRIDE; | 36 virtual void InitiatePasswordFetch() OVERRIDE; |
| 39 virtual bool IsUsageStatsEnabled() const OVERRIDE; | 37 virtual bool IsUsageStatsEnabled() const OVERRIDE; |
| 40 virtual void OnActorDestroyed(EulaScreenActor* actor) OVERRIDE; | 38 virtual void OnActorDestroyed(EulaScreenActor* actor) OVERRIDE; |
| 41 | 39 |
| 42 // TpmPasswordFetcherDelegate implementation: | 40 // TpmPasswordFetcherDelegate implementation: |
| 43 virtual void OnPasswordFetched(const std::string& tpm_password) OVERRIDE; | 41 virtual void OnPasswordFetched(const std::string& tpm_password) OVERRIDE; |
| 44 | 42 |
| 45 private: | 43 private: |
| 46 // URL of the OEM EULA page (on disk). | 44 // URL of the OEM EULA page (on disk). |
| 47 GURL oem_eula_page_; | 45 GURL oem_eula_page_; |
| 48 | 46 |
| 49 // TPM password local storage. By convention, we clear the password | 47 // TPM password local storage. By convention, we clear the password |
| 50 // from TPM as soon as we read it. We store it here locally until | 48 // from TPM as soon as we read it. We store it here locally until |
| 51 // EULA screen is closed. | 49 // EULA screen is closed. |
| 52 // TODO(glotov): Sanitize memory used to store password when | 50 // TODO(glotov): Sanitize memory used to store password when |
| 53 // it's destroyed. | 51 // it's destroyed. |
| 54 std::string tpm_password_; | 52 std::string tpm_password_; |
| 55 | 53 |
| 56 EulaScreenActor* actor_; | 54 EulaScreenActor* actor_; |
| 57 | 55 |
| 58 TpmPasswordFetcher password_fetcher_; | 56 TpmPasswordFetcher password_fetcher_; |
| 59 | 57 |
| 60 DISALLOW_COPY_AND_ASSIGN(EulaScreen); | 58 DISALLOW_COPY_AND_ASSIGN(EulaScreen); |
| 61 }; | 59 }; |
| 62 | 60 |
| 63 } // namespace chromeos | 61 } // namespace chromeos |
| 64 | 62 |
| 65 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_H_ | 63 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_H_ |
| OLD | NEW |