| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SETTINGS_OWNERSHIP_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SETTINGS_OWNERSHIP_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
| 15 #include "chrome/browser/chromeos/login/owner_key_utils.h" | 15 #include "chrome/browser/chromeos/settings/owner_key_utils.h" |
| 16 #include "chrome/browser/chromeos/login/owner_manager.h" | 16 #include "chrome/browser/chromeos/settings/owner_manager.h" |
| 17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 18 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
| 19 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
| 20 | 20 |
| 21 namespace base { | 21 namespace base { |
| 22 template <typename T> struct DefaultLazyInstanceTraits; | 22 template <typename T> struct DefaultLazyInstanceTraits; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace chromeos { | 25 namespace chromeos { |
| 26 | 26 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 content::NotificationRegistrar notification_registrar_; | 140 content::NotificationRegistrar notification_registrar_; |
| 141 volatile Status ownership_status_; | 141 volatile Status ownership_status_; |
| 142 base::Lock ownership_status_lock_; | 142 base::Lock ownership_status_lock_; |
| 143 | 143 |
| 144 // If true, current user is regarded as owner (for testing only). | 144 // If true, current user is regarded as owner (for testing only). |
| 145 bool force_ownership_; | 145 bool force_ownership_; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace chromeos | 148 } // namespace chromeos |
| 149 | 149 |
| 150 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ | 150 #endif // CHROME_BROWSER_CHROMEOS_SETTINGS_OWNERSHIP_SERVICE_H_ |
| OLD | NEW |