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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Records UMA histograms relevant to profile creation. | 105 // Records UMA histograms relevant to profile creation. |
106 void RecordProfileCreationMetrics(Profile::CreateStatus status); | 106 void RecordProfileCreationMetrics(Profile::CreateStatus status); |
107 | 107 |
108 base::string16 GetProfileCreationErrorMessageLocal() const; | 108 base::string16 GetProfileCreationErrorMessageLocal() const; |
109 #if defined(ENABLE_SUPERVISED_USERS) | 109 #if defined(ENABLE_SUPERVISED_USERS) |
110 // The following error messages only apply to supervised profiles. | 110 // The following error messages only apply to supervised profiles. |
111 base::string16 GetProfileCreateErrorMessageRemote() const; | 111 base::string16 GetProfileCreateErrorMessageRemote() const; |
112 base::string16 GetProfileCreateErrorMessageSignin() const; | 112 base::string16 GetProfileCreateErrorMessageSignin() const; |
113 #endif | 113 #endif |
114 | 114 |
115 std::string GetJavascriptMethodName(ProfileCreationStatus status) const; | 115 base::StringValue GetWebUIListenerName(ProfileCreationStatus status) const; |
116 | 116 |
117 // Used to allow cancelling a profile creation (particularly a supervised-user | 117 // Used to allow cancelling a profile creation (particularly a supervised-user |
118 // registration) in progress. Set when profile creation is begun, and | 118 // registration) in progress. Set when profile creation is begun, and |
119 // cleared when all the callbacks have been run and creation is complete. | 119 // cleared when all the callbacks have been run and creation is complete. |
120 base::FilePath profile_path_being_created_; | 120 base::FilePath profile_path_being_created_; |
121 | 121 |
122 // Used to track how long profile creation takes. | 122 // Used to track how long profile creation takes. |
123 base::TimeTicks profile_creation_start_time_; | 123 base::TimeTicks profile_creation_start_time_; |
124 | 124 |
125 // Indicates the type of the in progress profile creation operation. | 125 // Indicates the type of the in progress profile creation operation. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 scoped_ptr<SupervisedUserRegistrationUtility> | 189 scoped_ptr<SupervisedUserRegistrationUtility> |
190 supervised_user_registration_utility_; | 190 supervised_user_registration_utility_; |
191 #endif | 191 #endif |
192 | 192 |
193 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_; | 193 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_; |
194 | 194 |
195 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler); | 195 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler); |
196 }; | 196 }; |
197 | 197 |
198 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ | 198 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ |
OLD | NEW |