OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 void OnBrowserReadyCallback(Profile* profile, Profile::CreateStatus status); | 151 void OnBrowserReadyCallback(Profile* profile, Profile::CreateStatus status); |
152 | 152 |
153 // Updates the UI to show an error when creating a profile. | 153 // Updates the UI to show an error when creating a profile. |
154 void ShowProfileCreationError(Profile* profile, const base::string16& error); | 154 void ShowProfileCreationError(Profile* profile, const base::string16& error); |
155 | 155 |
156 // Records UMA histograms relevant to profile creation. | 156 // Records UMA histograms relevant to profile creation. |
157 void RecordProfileCreationMetrics(Profile::CreateStatus status); | 157 void RecordProfileCreationMetrics(Profile::CreateStatus status); |
158 | 158 |
159 base::string16 GetProfileCreationErrorMessageLocal() const; | 159 base::string16 GetProfileCreationErrorMessageLocal() const; |
160 | 160 |
161 base::StringValue GetWebUIListenerName(ProfileCreationStatus status) const; | 161 base::Value GetWebUIListenerName(ProfileCreationStatus status) const; |
162 | 162 |
163 // Used to allow canceling a profile creation (particularly a supervised-user | 163 // Used to allow canceling a profile creation (particularly a supervised-user |
164 // registration) in progress. Set when profile creation is begun, and | 164 // registration) in progress. Set when profile creation is begun, and |
165 // cleared when all the callbacks have been run and creation is complete. | 165 // cleared when all the callbacks have been run and creation is complete. |
166 base::FilePath profile_path_being_created_; | 166 base::FilePath profile_path_being_created_; |
167 | 167 |
168 // Used to track how long profile creation takes. | 168 // Used to track how long profile creation takes. |
169 base::TimeTicks profile_creation_start_time_; | 169 base::TimeTicks profile_creation_start_time_; |
170 | 170 |
171 // Indicates the type of the in progress profile creation operation. | 171 // Indicates the type of the in progress profile creation operation. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 content::NotificationRegistrar registrar_; | 257 content::NotificationRegistrar registrar_; |
258 | 258 |
259 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_; | 259 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_; |
260 | 260 |
261 private: | 261 private: |
262 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler); | 262 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler); |
263 }; | 263 }; |
264 | 264 |
265 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ | 265 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ |
OLD | NEW |