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

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

Issue 856493004: Update {virtual,override,final} to follow C++11 style in chrome/browser/chromeos/login. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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"
(...skipping 14 matching lines...) Expand all
25 // keeping track of current auto-enrollment state and displaying and updating 25 // keeping track of current auto-enrollment state and displaying and updating
26 // the error screen upon failures. Similar to a screen controller, but it 26 // the error screen upon failures. Similar to a screen controller, but it
27 // doesn't actually drive a dedicated screen. 27 // doesn't actually drive a dedicated screen.
28 class AutoEnrollmentCheckScreen 28 class AutoEnrollmentCheckScreen
29 : public AutoEnrollmentCheckScreenActor::Delegate, 29 : public AutoEnrollmentCheckScreenActor::Delegate,
30 public BaseScreen, 30 public BaseScreen,
31 public NetworkPortalDetector::Observer { 31 public NetworkPortalDetector::Observer {
32 public: 32 public:
33 AutoEnrollmentCheckScreen(BaseScreenDelegate* base_screen_delegate, 33 AutoEnrollmentCheckScreen(BaseScreenDelegate* base_screen_delegate,
34 AutoEnrollmentCheckScreenActor* actor); 34 AutoEnrollmentCheckScreenActor* actor);
35 virtual ~AutoEnrollmentCheckScreen(); 35 ~AutoEnrollmentCheckScreen() override;
36 36
37 static AutoEnrollmentCheckScreen* Get(ScreenManager* manager); 37 static AutoEnrollmentCheckScreen* Get(ScreenManager* manager);
38 38
39 // Clears the cached state causing the forced enrollment check to be retried. 39 // Clears the cached state causing the forced enrollment check to be retried.
40 void ClearState(); 40 void ClearState();
41 41
42 void set_auto_enrollment_controller( 42 void set_auto_enrollment_controller(
43 AutoEnrollmentController* auto_enrollment_controller) { 43 AutoEnrollmentController* auto_enrollment_controller) {
44 auto_enrollment_controller_ = auto_enrollment_controller; 44 auto_enrollment_controller_ = auto_enrollment_controller;
45 } 45 }
46 46
47 // BaseScreen implementation: 47 // BaseScreen implementation:
48 virtual void PrepareToShow() override; 48 void PrepareToShow() override;
49 virtual void Show() override; 49 void Show() override;
50 virtual void Hide() override; 50 void Hide() override;
51 virtual std::string GetName() const override; 51 std::string GetName() const override;
52 52
53 // AutoEnrollmentCheckScreenActor::Delegate implementation: 53 // AutoEnrollmentCheckScreenActor::Delegate implementation:
54 virtual void OnActorDestroyed(AutoEnrollmentCheckScreenActor* actor) override; 54 void OnActorDestroyed(AutoEnrollmentCheckScreenActor* actor) override;
55 55
56 // NetworkPortalDetector::Observer implementation: 56 // NetworkPortalDetector::Observer implementation:
57 virtual void OnPortalDetectionCompleted( 57 void OnPortalDetectionCompleted(
58 const NetworkState* network, 58 const NetworkState* network,
59 const NetworkPortalDetector::CaptivePortalState& state) override; 59 const NetworkPortalDetector::CaptivePortalState& state) override;
60 60
61 private: 61 private:
62 // Handles update notifications regarding the auto-enrollment check. 62 // Handles update notifications regarding the auto-enrollment check.
63 void OnAutoEnrollmentCheckProgressed(policy::AutoEnrollmentState state); 63 void OnAutoEnrollmentCheckProgressed(policy::AutoEnrollmentState state);
64 64
65 // Handles a state update, updating the UI and saving the state. 65 // Handles a state update, updating the UI and saving the state.
66 void UpdateState(); 66 void UpdateState();
67 67
(...skipping 30 matching lines...) Expand all
98 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; 98 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_;
99 99
100 base::WeakPtrFactory<AutoEnrollmentCheckScreen> weak_ptr_factory_; 100 base::WeakPtrFactory<AutoEnrollmentCheckScreen> weak_ptr_factory_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentCheckScreen); 102 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentCheckScreen);
103 }; 103 };
104 104
105 } // namespace chromeos 105 } // namespace chromeos
106 106
107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN _H_ 107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CHECK_SCREEN _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698