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

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

Issue 10829032: Remove unused chromeos::EulaScreenActor::IsTpmEnabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix copyright year Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/eula_screen.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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_ACTOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_ACTOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_ACTOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_ACTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
11 #include "ui/gfx/size.h" 11 #include "ui/gfx/size.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 // Interface between eula screen and its representation, either WebUI or 15 // Interface between eula screen and its representation, either WebUI or
16 // Views one. Note, do not forget to call OnActorDestroyed in the dtor. 16 // Views one. Note, do not forget to call OnActorDestroyed in the dtor.
17 class EulaScreenActor { 17 class EulaScreenActor {
18 public: 18 public:
19 // Allows us to get info from eula screen that we need. 19 // Allows us to get info from eula screen that we need.
20 class Delegate { 20 class Delegate {
21 public: 21 public:
22 virtual ~Delegate() {} 22 virtual ~Delegate() {}
23 23
24 // Returns true if TPM is enabled.
25 virtual bool IsTpmEnabled() const = 0;
26
27 // Returns URL of the OEM EULA page that should be displayed using current 24 // Returns URL of the OEM EULA page that should be displayed using current
28 // locale and manifest. Returns empty URL otherwise. 25 // locale and manifest. Returns empty URL otherwise.
29 virtual GURL GetOemEulaUrl() const = 0; 26 virtual GURL GetOemEulaUrl() const = 0;
30 27
31 // Called when screen is exited. |accepted| indicates if EULA was 28 // Called when screen is exited. |accepted| indicates if EULA was
32 // accepted or not. 29 // accepted or not.
33 virtual void OnExit(bool accepted, bool is_usage_stats_checked) = 0; 30 virtual void OnExit(bool accepted, bool is_usage_stats_checked) = 0;
34 31
35 // Initiate TPM password fetch. Will call actor's OnPasswordFetched() when 32 // Initiate TPM password fetch. Will call actor's OnPasswordFetched() when
36 // done. 33 // done.
(...skipping 12 matching lines...) Expand all
49 virtual void PrepareToShow() = 0; 46 virtual void PrepareToShow() = 0;
50 virtual void Show() = 0; 47 virtual void Show() = 0;
51 virtual void Hide() = 0; 48 virtual void Hide() = 0;
52 virtual void SetDelegate(Delegate* delegate) = 0; 49 virtual void SetDelegate(Delegate* delegate) = 0;
53 virtual void OnPasswordFetched(const std::string& tpm_password) = 0; 50 virtual void OnPasswordFetched(const std::string& tpm_password) = 0;
54 }; 51 };
55 52
56 } // namespace chromeos 53 } // namespace chromeos
57 54
58 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_ACTOR_H_ 55 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EULA_SCREEN_ACTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/eula_screen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698