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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.h

Issue 2587993002: Chromad: Switch AuthPolicyClient to use cros_system_api enums. (Closed)
Patch Set: Move default to the end of switch. 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 | « no previous file | chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.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) 2012 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_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen_actor.h" 12 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen_actor.h"
13 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper. h" 13 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper. h"
14 #include "chrome/browser/chromeos/login/screens/network_error_model.h" 14 #include "chrome/browser/chromeos/login/screens/network_error_model.h"
15 #include "chrome/browser/chromeos/policy/enrollment_config.h" 15 #include "chrome/browser/chromeos/policy/enrollment_config.h"
16 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 16 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
17 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" 17 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 #include "third_party/cros_system_api/dbus/service_constants.h"
19 20
20 namespace chromeos { 21 namespace chromeos {
21 22
22 class ErrorScreensHistogramHelper; 23 class ErrorScreensHistogramHelper;
23 class HelpAppLauncher; 24 class HelpAppLauncher;
24 25
25 // WebUIMessageHandler implementation which handles events occurring on the 26 // WebUIMessageHandler implementation which handles events occurring on the
26 // page, such as the user pressing the signin button. 27 // page, such as the user pressing the signin button.
27 class EnrollmentScreenHandler 28 class EnrollmentScreenHandler
28 : public BaseScreenHandler, 29 : public BaseScreenHandler,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // enrollment sign-in page. 110 // enrollment sign-in page.
110 bool IsEnrollmentScreenHiddenByError() const; 111 bool IsEnrollmentScreenHiddenByError() const;
111 112
112 // Helper function to wait for AD password written to a pipe. 113 // Helper function to wait for AD password written to a pipe.
113 void OnPasswordPipeReady(const std::string& machine_name, 114 void OnPasswordPipeReady(const std::string& machine_name,
114 const std::string& user_name, 115 const std::string& user_name,
115 base::ScopedFD password_fd); 116 base::ScopedFD password_fd);
116 // Handler callback from AuthPolicyClient. 117 // Handler callback from AuthPolicyClient.
117 void HandleAdDomainJoin(const std::string& machine_name, 118 void HandleAdDomainJoin(const std::string& machine_name,
118 const std::string& user_name, 119 const std::string& user_name,
119 int code); 120 authpolicy::ErrorType code);
120 121
121 // Keeps the controller for this actor. 122 // Keeps the controller for this actor.
122 Controller* controller_; 123 Controller* controller_;
123 124
124 bool show_on_init_; 125 bool show_on_init_;
125 126
126 // The enrollment configuration. 127 // The enrollment configuration.
127 policy::EnrollmentConfig config_; 128 policy::EnrollmentConfig config_;
128 129
129 // True if screen was not shown yet. 130 // True if screen was not shown yet.
(...skipping 14 matching lines...) Expand all
144 scoped_refptr<HelpAppLauncher> help_app_; 145 scoped_refptr<HelpAppLauncher> help_app_;
145 146
146 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; 147 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_;
147 148
148 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); 149 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler);
149 }; 150 };
150 151
151 } // namespace chromeos 152 } // namespace chromeos
152 153
153 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ 154 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698