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

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

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/chromeos/login/eula_screen_actor.h" 13 #include "chrome/browser/chromeos/login/eula_screen_actor.h"
13 #include "chrome/browser/chromeos/login/tpm_password_fetcher.h" 14 #include "chrome/browser/chromeos/login/tpm_password_fetcher.h"
14 #include "chrome/browser/chromeos/login/wizard_screen.h" 15 #include "chrome/browser/chromeos/login/wizard_screen.h"
15 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
16 17
17 namespace chromeos { 18 namespace chromeos {
18 19
19 // Representation independent class that controls OOBE screen showing EULA 20 // Representation independent class that controls OOBE screen showing EULA
20 // to users. 21 // to users.
21 class EulaScreen : public WizardScreen, 22 class EulaScreen : public WizardScreen,
22 public EulaScreenActor::Delegate, 23 public EulaScreenActor::Delegate,
23 public TpmPasswordFetcherDelegate { 24 public TpmPasswordFetcherDelegate {
24 public: 25 public:
25 EulaScreen(ScreenObserver* observer, EulaScreenActor* actor); 26 EulaScreen(ScreenObserver* observer, EulaScreenActor* actor);
26 virtual ~EulaScreen(); 27 virtual ~EulaScreen();
27 28
28 // WizardScreen implementation: 29 // WizardScreen implementation:
29 virtual void PrepareToShow(); 30 virtual void PrepareToShow() OVERRIDE;
30 virtual void Show(); 31 virtual void Show() OVERRIDE;
31 virtual void Hide(); 32 virtual void Hide() OVERRIDE;
32 33
33 // EulaScreenActor::Delegate implementation: 34 // EulaScreenActor::Delegate implementation:
34 virtual bool IsTpmEnabled() const; 35 virtual bool IsTpmEnabled() const OVERRIDE;
35 virtual GURL GetOemEulaUrl() const; 36 virtual GURL GetOemEulaUrl() const OVERRIDE;
36 virtual void OnExit(bool accepted, bool is_usage_stats_checked); 37 virtual void OnExit(bool accepted, bool is_usage_stats_checked) OVERRIDE;
37 virtual void InitiatePasswordFetch(); 38 virtual void InitiatePasswordFetch() OVERRIDE;
38 virtual bool IsUsageStatsEnabled() const; 39 virtual bool IsUsageStatsEnabled() const OVERRIDE;
39 virtual void OnActorDestroyed(EulaScreenActor* actor); 40 virtual void OnActorDestroyed(EulaScreenActor* actor) OVERRIDE;
40 41
41 // TpmPasswordFetcherDelegate implementation: 42 // TpmPasswordFetcherDelegate implementation:
42 virtual void OnPasswordFetched(const std::string& tpm_password) OVERRIDE; 43 virtual void OnPasswordFetched(const std::string& tpm_password) OVERRIDE;
43 44
44 private: 45 private:
45 // URL of the OEM EULA page (on disk). 46 // URL of the OEM EULA page (on disk).
46 GURL oem_eula_page_; 47 GURL oem_eula_page_;
47 48
48 // TPM password local storage. By convention, we clear the password 49 // TPM password local storage. By convention, we clear the password
49 // from TPM as soon as we read it. We store it here locally until 50 // from TPM as soon as we read it. We store it here locally until
50 // EULA screen is closed. 51 // EULA screen is closed.
51 // TODO(glotov): Sanitize memory used to store password when 52 // TODO(glotov): Sanitize memory used to store password when
52 // it's destroyed. 53 // it's destroyed.
53 std::string tpm_password_; 54 std::string tpm_password_;
54 55
55 EulaScreenActor* actor_; 56 EulaScreenActor* actor_;
56 57
57 TpmPasswordFetcher password_fetcher_; 58 TpmPasswordFetcher password_fetcher_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(EulaScreen); 60 DISALLOW_COPY_AND_ASSIGN(EulaScreen);
60 }; 61 };
61 62
62 } // namespace chromeos 63 } // namespace chromeos
63 64
64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_H_ 65 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698