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

Side by Side Diff: chrome/browser/chromeos/login/screens/eula_screen.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 months 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
OLDNEW
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_SCREENS_EULA_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_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"
11 #include "chrome/browser/chromeos/login/screens/eula_screen_actor.h" 11 #include "chrome/browser/chromeos/login/screens/eula_screen_actor.h"
12 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" 12 #include "chrome/browser/chromeos/login/screens/wizard_screen.h"
13 #include "chromeos/tpm_password_fetcher.h" 13 #include "chromeos/tpm_password_fetcher.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // Representation independent class that controls OOBE screen showing EULA 18 // Representation independent class that controls OOBE screen showing EULA
19 // to users. 19 // to users.
20 class EulaScreen : public WizardScreen, 20 class EulaScreen : public WizardScreen,
21 public EulaScreenActor::Delegate, 21 public EulaScreenActor::Delegate,
22 public TpmPasswordFetcherDelegate { 22 public TpmPasswordFetcherDelegate {
23 public: 23 public:
24 EulaScreen(ScreenObserver* observer, EulaScreenActor* actor); 24 EulaScreen(ScreenObserver* observer, EulaScreenActor* actor);
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, bool usage_stats_enabled) OVERRIDE; 35 virtual void OnExit(bool accepted, bool usage_stats_enabled) override;
36 virtual void InitiatePasswordFetch() OVERRIDE; 36 virtual void InitiatePasswordFetch() override;
37 virtual bool IsUsageStatsEnabled() const OVERRIDE; 37 virtual bool IsUsageStatsEnabled() const override;
38 virtual void OnActorDestroyed(EulaScreenActor* actor) OVERRIDE; 38 virtual void OnActorDestroyed(EulaScreenActor* actor) override;
39 39
40 // TpmPasswordFetcherDelegate implementation: 40 // TpmPasswordFetcherDelegate implementation:
41 virtual void OnPasswordFetched(const std::string& tpm_password) OVERRIDE; 41 virtual void OnPasswordFetched(const std::string& tpm_password) override;
42 42
43 private: 43 private:
44 // URL of the OEM EULA page (on disk). 44 // URL of the OEM EULA page (on disk).
45 GURL oem_eula_page_; 45 GURL oem_eula_page_;
46 46
47 // TPM password local storage. By convention, we clear the password 47 // TPM password local storage. By convention, we clear the password
48 // 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
49 // EULA screen is closed. 49 // EULA screen is closed.
50 // TODO(glotov): Sanitize memory used to store password when 50 // TODO(glotov): Sanitize memory used to store password when
51 // it's destroyed. 51 // it's destroyed.
52 std::string tpm_password_; 52 std::string tpm_password_;
53 53
54 EulaScreenActor* actor_; 54 EulaScreenActor* actor_;
55 55
56 TpmPasswordFetcher password_fetcher_; 56 TpmPasswordFetcher password_fetcher_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(EulaScreen); 58 DISALLOW_COPY_AND_ASSIGN(EulaScreen);
59 }; 59 };
60 60
61 } // namespace chromeos 61 } // namespace chromeos
62 62
63 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_ 63 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/error_screen.h ('k') | chrome/browser/chromeos/login/screens/hid_detection_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698