| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SUPERVISED_SUPERVISED_USER_CREATION_CONTRO
LLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_CONTRO
LLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_CONTRO
LLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_CONTRO
LLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/chromeos/login/supervised/supervised_user_authenticator
.h" | 16 #include "chrome/browser/chromeos/login/supervised/supervised_user_authenticator
.h" |
| 17 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti
lity.h" | 17 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti
lity.h" |
| 18 | 18 |
| 19 class Profile; | 19 class Profile; |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 | 22 |
| 23 class SupervisedUserCreationController { | 23 class SupervisedUserCreationController { |
| 24 public: | 24 public: |
| 25 // This constant is used to indicate that user does not have one of default | 25 // This constant is used to indicate that user does not have one of default |
| 26 // avatars: either he has no chromeos avatar at all, or has an external | 26 // avatars: either they have no chromeos avatar at all, or they have an |
| 27 // image as an avatar. | 27 // external image as an avatar. |
| 28 static const int kDummyAvatarIndex; | 28 static const int kDummyAvatarIndex; |
| 29 | 29 |
| 30 enum ErrorCode { | 30 enum ErrorCode { |
| 31 NO_ERROR, | 31 NO_ERROR, |
| 32 CRYPTOHOME_NO_MOUNT, | 32 CRYPTOHOME_NO_MOUNT, |
| 33 CRYPTOHOME_FAILED_MOUNT, | 33 CRYPTOHOME_FAILED_MOUNT, |
| 34 CRYPTOHOME_FAILED_TPM, | 34 CRYPTOHOME_FAILED_TPM, |
| 35 CLOUD_SERVER_ERROR, | 35 CLOUD_SERVER_ERROR, |
| 36 TOKEN_WRITE_FAILED, | 36 TOKEN_WRITE_FAILED, |
| 37 }; | 37 }; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 StatusConsumer* consumer_; | 100 StatusConsumer* consumer_; |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationController); | 103 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationController); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace chromeos | 106 } // namespace chromeos |
| 107 | 107 |
| 108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_CON
TROLLER_H_ | 108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_CON
TROLLER_H_ |
| OLD | NEW |