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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen.h

Issue 679133002: ScreenObserver is renamed to BaseScreenDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 6 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen_ actor.h" 11 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen_ actor.h"
12 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_controller.h" 12 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_controller.h"
13 #include "chrome/browser/chromeos/login/screens/error_screen.h" 13 #include "chrome/browser/chromeos/login/screens/error_screen.h"
14 #include "chromeos/network/portal_detector/network_portal_detector.h" 14 #include "chromeos/network/portal_detector/network_portal_detector.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 class BaseScreenDelegate;
18 class ErrorScreensHistogramHelper; 19 class ErrorScreensHistogramHelper;
19 class ScreenManager; 20 class ScreenManager;
20 class ScreenObserver;
21 21
22 // Handles the control flow after OOBE auto-update completes to wait for the 22 // Handles the control flow after OOBE auto-update completes to wait for the
23 // enterprise auto-enrollment check that happens as part of OOBE. This includes 23 // enterprise auto-enrollment check that happens as part of OOBE. This includes
24 // keeping track of current auto-enrollment state and displaying and updating 24 // keeping track of current auto-enrollment state and displaying and updating
25 // the error screen upon failures. Similar to a screen controller, but it 25 // the error screen upon failures. Similar to a screen controller, but it
26 // doesn't actually drive a dedicated screen. 26 // doesn't actually drive a dedicated screen.
27 class AutoEnrollmentCheckScreen 27 class AutoEnrollmentCheckScreen
28 : public AutoEnrollmentCheckScreenActor::Delegate, 28 : public AutoEnrollmentCheckScreenActor::Delegate,
29 public BaseScreen, 29 public BaseScreen,
30 public NetworkPortalDetector::Observer { 30 public NetworkPortalDetector::Observer {
31 public: 31 public:
32 AutoEnrollmentCheckScreen( 32 AutoEnrollmentCheckScreen(BaseScreenDelegate* base_screen_delegate,
33 ScreenObserver* observer, 33 AutoEnrollmentCheckScreenActor* actor);
34 AutoEnrollmentCheckScreenActor* actor);
35 virtual ~AutoEnrollmentCheckScreen(); 34 virtual ~AutoEnrollmentCheckScreen();
36 35
37 static AutoEnrollmentCheckScreen* Get(ScreenManager* manager); 36 static AutoEnrollmentCheckScreen* Get(ScreenManager* manager);
38 37
39 // Hands over OOBE control to this AutoEnrollmentCheckStep. It'll return the 38 // Hands over OOBE control to this AutoEnrollmentCheckStep. It'll return the
40 // flow back to the caller via the |screen_observer_|'s OnExit function. 39 // flow back to the caller via the |base_screen_delegate_|'s OnExit function.
41 void Start(); 40 void Start();
42 41
43 void set_auto_enrollment_controller( 42 void set_auto_enrollment_controller(
44 AutoEnrollmentController* auto_enrollment_controller) { 43 AutoEnrollmentController* auto_enrollment_controller) {
45 auto_enrollment_controller_ = auto_enrollment_controller; 44 auto_enrollment_controller_ = auto_enrollment_controller;
46 } 45 }
47 46
48 // BaseScreen implementation: 47 // BaseScreen implementation:
49 virtual void PrepareToShow() override; 48 virtual void PrepareToShow() override;
50 virtual void Show() override; 49 virtual void Show() override;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 policy::AutoEnrollmentState auto_enrollment_state_; 99 policy::AutoEnrollmentState auto_enrollment_state_;
101 100
102 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; 101 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_;
103 102
104 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentCheckScreen); 103 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentCheckScreen);
105 }; 104 };
106 105
107 } // namespace chromeos 106 } // namespace chromeos
108 107
109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN _H_ 108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN _H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698