OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_OWNERSHIP_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 OwnerManager::Delegate* d); | 122 OwnerManager::Delegate* d); |
123 static void FailAttempt(OwnerManager::Delegate* d); | 123 static void FailAttempt(OwnerManager::Delegate* d); |
124 | 124 |
125 OwnerManager* manager() { return manager_.get(); } | 125 OwnerManager* manager() { return manager_.get(); } |
126 | 126 |
127 scoped_refptr<OwnerManager> manager_; | 127 scoped_refptr<OwnerManager> manager_; |
128 scoped_refptr<OwnerKeyUtils> utils_; | 128 scoped_refptr<OwnerKeyUtils> utils_; |
129 content::NotificationRegistrar notification_registrar_; | 129 content::NotificationRegistrar notification_registrar_; |
130 volatile Status ownership_status_; | 130 volatile Status ownership_status_; |
131 base::Lock ownership_status_lock_; | 131 base::Lock ownership_status_lock_; |
| 132 |
| 133 // If true, current user is regarded as owner (for testing only). |
| 134 bool force_ownership_; |
132 }; | 135 }; |
133 | 136 |
134 } // namespace chromeos | 137 } // namespace chromeos |
135 | 138 |
136 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ | 139 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ |
OLD | NEW |