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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/chromeos/login/supervised/supervised_user_authenticator
.h" | 15 #include "chrome/browser/chromeos/login/supervised/supervised_user_authenticator
.h" |
16 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti
lity.h" | 16 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti
lity.h" |
17 | 17 |
18 class Profile; | 18 class Profile; |
19 | 19 |
| 20 namespace user_manager { |
| 21 class UserID; |
| 22 } |
| 23 |
20 namespace chromeos { | 24 namespace chromeos { |
21 | 25 |
22 class SupervisedUserCreationController { | 26 class SupervisedUserCreationController { |
23 public: | 27 public: |
24 // This constant is used to indicate that user does not have one of default | 28 // This constant is used to indicate that user does not have one of default |
25 // avatars: either he has no chromeos avatar at all, or has an external | 29 // avatars: either he has no chromeos avatar at all, or has an external |
26 // image as an avatar. | 30 // image as an avatar. |
27 static const int kDummyAvatarIndex; | 31 static const int kDummyAvatarIndex; |
28 | 32 |
29 enum ErrorCode { | 33 enum ErrorCode { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 const std::string& sync_id, | 86 const std::string& sync_id, |
83 const std::string& master_key, | 87 const std::string& master_key, |
84 const base::DictionaryValue* password_data, | 88 const base::DictionaryValue* password_data, |
85 const std::string& encryption_key, | 89 const std::string& encryption_key, |
86 const std::string& signature_key) = 0; | 90 const std::string& signature_key) = 0; |
87 | 91 |
88 virtual void SetManagerProfile(Profile* manager_profile) = 0; | 92 virtual void SetManagerProfile(Profile* manager_profile) = 0; |
89 virtual Profile* GetManagerProfile() = 0; | 93 virtual Profile* GetManagerProfile() = 0; |
90 virtual void CancelCreation() = 0; | 94 virtual void CancelCreation() = 0; |
91 virtual void FinishCreation() = 0; | 95 virtual void FinishCreation() = 0; |
92 virtual std::string GetSupervisedUserId() = 0; | 96 virtual const user_manager::UserID& GetSupervisedUserId() const = 0; |
93 | 97 |
94 protected: | 98 protected: |
95 // Pointer to the current instance of the controller to be used by | 99 // Pointer to the current instance of the controller to be used by |
96 // automation tests. | 100 // automation tests. |
97 static SupervisedUserCreationController* current_controller_; | 101 static SupervisedUserCreationController* current_controller_; |
98 | 102 |
99 StatusConsumer* consumer_; | 103 StatusConsumer* consumer_; |
100 | 104 |
101 private: | 105 private: |
102 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationController); | 106 DISALLOW_COPY_AND_ASSIGN(SupervisedUserCreationController); |
103 }; | 107 }; |
104 | 108 |
105 } // namespace chromeos | 109 } // namespace chromeos |
106 | 110 |
107 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_CON
TROLLER_H_ | 111 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_CREATION_CON
TROLLER_H_ |
OLD | NEW |