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

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

Issue 2556253002: cros: Fold EulaModel into EulaView. (Closed)
Patch Set: Address comments Created 3 years, 11 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
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/login/screens/eula_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_MODEL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_MODEL_H_
7
8 #include "chrome/browser/chromeos/login/screens/base_screen.h"
9 #include "url/gurl.h"
10
11 namespace chromeos {
12
13 class BaseScreenDelegate;
14 class EulaView;
15
16 // Allows us to get info from eula screen that we need.
17 class EulaModel : public BaseScreen {
18 public:
19 static const char kUserActionAcceptButtonClicked[];
20 static const char kUserActionBackButtonClicked[];
21 static const char kContextKeyUsageStatsEnabled[];
22
23 explicit EulaModel(BaseScreenDelegate* base_screen_delegate);
24 ~EulaModel() override;
25
26 // Returns URL of the OEM EULA page that should be displayed using current
27 // locale and manifest. Returns empty URL otherwise.
28 virtual GURL GetOemEulaUrl() const = 0;
29
30 // Initiate TPM password fetch. Will call actor's OnPasswordFetched() when
31 // done.
32 virtual void InitiatePasswordFetch() = 0;
33
34 // Returns true if usage statistics reporting is enabled.
35 virtual bool IsUsageStatsEnabled() const = 0;
36
37 // This method is called, when view is being destroyed. Note, if model
38 // is destroyed earlier then it has to call SetModel(NULL).
39 virtual void OnViewDestroyed(EulaView* view) = 0;
40 };
41
42 } // namespace chromeos
43
44 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/login/screens/eula_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698