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_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // TPMTokenLoader::Observer: | 66 // TPMTokenLoader::Observer: |
67 virtual void OnTPMTokenReady() OVERRIDE; | 67 virtual void OnTPMTokenReady() OVERRIDE; |
68 | 68 |
69 // SessionManagerClient::Observer: | 69 // SessionManagerClient::Observer: |
70 virtual void OwnerKeySet(bool success) OVERRIDE; | 70 virtual void OwnerKeySet(bool success) OVERRIDE; |
71 | 71 |
72 // Checks if the user is the device owner, without the user profile having to | 72 // Checks if the user is the device owner, without the user profile having to |
73 // been initialized. Should be used only if login state is in safe mode. | 73 // been initialized. Should be used only if login state is in safe mode. |
74 static void IsOwnerForSafeModeAsync( | 74 static void IsOwnerForSafeModeAsync( |
75 const std::string& user_id, | |
76 const std::string& user_hash, | 75 const std::string& user_hash, |
77 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util, | 76 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util, |
78 const IsOwnerCallback& callback); | 77 const IsOwnerCallback& callback); |
79 | 78 |
80 static void SetDeviceSettingsServiceForTesting( | 79 static void SetDeviceSettingsServiceForTesting( |
81 DeviceSettingsService* device_settings_service); | 80 DeviceSettingsService* device_settings_service); |
82 | 81 |
83 private: | 82 private: |
84 friend class OwnerSettingsServiceFactory; | 83 friend class OwnerSettingsServiceFactory; |
85 | 84 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 base::ThreadChecker thread_checker_; | 148 base::ThreadChecker thread_checker_; |
150 | 149 |
151 base::WeakPtrFactory<OwnerSettingsService> weak_factory_; | 150 base::WeakPtrFactory<OwnerSettingsService> weak_factory_; |
152 | 151 |
153 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService); | 152 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService); |
154 }; | 153 }; |
155 | 154 |
156 } // namespace chromeos | 155 } // namespace chromeos |
157 | 156 |
158 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ | 157 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_H_ |
OLD | NEW |