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

Side by Side Diff: chrome/browser/ui/webui/options/create_profile_handler.h

Issue 335833003: Rename "managed (mode|user)" to "supervised user" (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments (+ a few other cleanups) Created 6 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/profiles/profile_window.h" 11 #include "chrome/browser/profiles/profile_window.h"
12 #include "chrome/browser/ui/host_desktop.h" 12 #include "chrome/browser/ui/host_desktop.h"
13 #include "chrome/browser/ui/webui/options/options_ui.h" 13 #include "chrome/browser/ui/webui/options/options_ui.h"
14 #include "google_apis/gaia/google_service_auth_error.h" 14 #include "google_apis/gaia/google_service_auth_error.h"
15 15
16 16
17 namespace base { 17 namespace base {
18 class DictionaryValue; 18 class DictionaryValue;
19 class ListValue; 19 class ListValue;
20 } 20 }
21 21
22 class ManagedUserRegistrationUtility; 22 class SupervisedUserRegistrationUtility;
23 23
24 namespace options { 24 namespace options {
25 25
26 // Handler for the 'create profile' overlay. 26 // Handler for the 'create profile' overlay.
27 class CreateProfileHandler: public OptionsPageUIHandler { 27 class CreateProfileHandler: public OptionsPageUIHandler {
28 public: 28 public:
29 CreateProfileHandler(); 29 CreateProfileHandler();
30 virtual ~CreateProfileHandler(); 30 virtual ~CreateProfileHandler();
31 31
32 // OptionsPageUIHandler implementation. 32 // OptionsPageUIHandler implementation.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 const std::string& existing_supervised_user_id) const; 143 const std::string& existing_supervised_user_id) const;
144 144
145 // Used to allow cancelling a profile creation (particularly a supervised-user 145 // Used to allow cancelling a profile creation (particularly a supervised-user
146 // registration) in progress. Set when profile creation is begun, and 146 // registration) in progress. Set when profile creation is begun, and
147 // cleared when all the callbacks have been run and creation is complete. 147 // cleared when all the callbacks have been run and creation is complete.
148 base::FilePath profile_path_being_created_; 148 base::FilePath profile_path_being_created_;
149 149
150 // Used to track how long profile creation takes. 150 // Used to track how long profile creation takes.
151 base::TimeTicks profile_creation_start_time_; 151 base::TimeTicks profile_creation_start_time_;
152 152
153 scoped_ptr<ManagedUserRegistrationUtility> managed_user_registration_utility_; 153 scoped_ptr<SupervisedUserRegistrationUtility>
154 supervised_user_registration_utility_;
154 155
155 // Indicates the type of the in progress profile creation operation. 156 // Indicates the type of the in progress profile creation operation.
156 // The value is only relevant while we are creating/importing a profile. 157 // The value is only relevant while we are creating/importing a profile.
157 ProfileCreationOperationType profile_creation_type_; 158 ProfileCreationOperationType profile_creation_type_;
158 159
159 base::WeakPtrFactory<CreateProfileHandler> weak_ptr_factory_; 160 base::WeakPtrFactory<CreateProfileHandler> weak_ptr_factory_;
160 161
161 DISALLOW_COPY_AND_ASSIGN(CreateProfileHandler); 162 DISALLOW_COPY_AND_ASSIGN(CreateProfileHandler);
162 }; 163 };
163 164
164 } // namespace options 165 } // namespace options
165 166
166 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_ 167 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CREATE_PROFILE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/history_ui.cc ('k') | chrome/browser/ui/webui/options/create_profile_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698