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

Side by Side Diff: chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.h

Issue 14134007: NetworkPortalDetector/NetworkStateInformer: Switch over to use NetworkStateHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 | « no previous file | chrome/browser/chromeos/login/managed/locally_managed_user_creation_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_MANAGED_LOCALLY_MANAGED_USER_CREATION_SCRE EN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_SCRE EN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_SCRE EN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_SCRE EN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/chromeos/login/managed/locally_managed_user_controller. h" 12 #include "chrome/browser/chromeos/login/managed/locally_managed_user_controller. h"
13 #include "chrome/browser/chromeos/login/screens/wizard_screen.h" 13 #include "chrome/browser/chromeos/login/screens/wizard_screen.h"
14 #include "chrome/browser/chromeos/net/network_portal_detector.h" 14 #include "chrome/browser/chromeos/net/network_portal_detector.h"
15 #include "chrome/browser/ui/webui/chromeos/login/locally_managed_user_creation_s creen_handler.h" 15 #include "chrome/browser/ui/webui/chromeos/login/locally_managed_user_creation_s creen_handler.h"
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 class NetworkState;
20
19 // Class that controls screen showing ui for locally managed user creation. 21 // Class that controls screen showing ui for locally managed user creation.
20 class LocallyManagedUserCreationScreen 22 class LocallyManagedUserCreationScreen
21 : public WizardScreen, 23 : public WizardScreen,
22 public LocallyManagedUserCreationScreenHandler::Delegate, 24 public LocallyManagedUserCreationScreenHandler::Delegate,
23 public LocallyManagedUserController::StatusConsumer, 25 public LocallyManagedUserController::StatusConsumer,
24 public NetworkPortalDetector::Observer { 26 public NetworkPortalDetector::Observer {
25 public: 27 public:
26 LocallyManagedUserCreationScreen( 28 LocallyManagedUserCreationScreen(
27 ScreenObserver* observer, 29 ScreenObserver* observer,
28 LocallyManagedUserCreationScreenHandler* actor); 30 LocallyManagedUserCreationScreenHandler* actor);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const std::string& manager_password) OVERRIDE; 71 const std::string& manager_password) OVERRIDE;
70 virtual void AbortFlow() OVERRIDE; 72 virtual void AbortFlow() OVERRIDE;
71 virtual void FinishFlow() OVERRIDE; 73 virtual void FinishFlow() OVERRIDE;
72 virtual void SelectPicture() OVERRIDE; 74 virtual void SelectPicture() OVERRIDE;
73 75
74 // LocallyManagedUserController::StatusConsumer overrides. 76 // LocallyManagedUserController::StatusConsumer overrides.
75 virtual void OnCreationError(LocallyManagedUserController::ErrorCode code, 77 virtual void OnCreationError(LocallyManagedUserController::ErrorCode code,
76 bool recoverable) OVERRIDE; 78 bool recoverable) OVERRIDE;
77 virtual void OnCreationSuccess() OVERRIDE; 79 virtual void OnCreationSuccess() OVERRIDE;
78 80
79 // ConnectivityStateHelperObserver implementation: 81 // NetworkPortalDetector::Observer implementation:
80 virtual void OnPortalDetectionCompleted( 82 virtual void OnPortalDetectionCompleted(
81 const Network* network, 83 const NetworkState* network,
82 const NetworkPortalDetector::CaptivePortalState& state) OVERRIDE; 84 const NetworkPortalDetector::CaptivePortalState& state) OVERRIDE;
83 private: 85 private:
84 LocallyManagedUserCreationScreenHandler* actor_; 86 LocallyManagedUserCreationScreenHandler* actor_;
85 87
86 scoped_ptr<LocallyManagedUserController> controller_; 88 scoped_ptr<LocallyManagedUserController> controller_;
87 89
88 bool on_error_screen_; 90 bool on_error_screen_;
89 bool on_image_screen_; 91 bool on_image_screen_;
90 92
91 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationScreen); 93 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationScreen);
92 }; 94 };
93 95
94 } // namespace chromeos 96 } // namespace chromeos
95 97
96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_S CREEN_H_ 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_S CREEN_H_
97 99
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698