OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
11 | 11 |
12 #include "chrome/browser/browser_thread.h" | |
13 #include "chrome/browser/chromeos/login/owner_key_utils.h" | 12 #include "chrome/browser/chromeos/login/owner_key_utils.h" |
14 #include "chrome/browser/chromeos/login/owner_manager.h" | 13 #include "chrome/browser/chromeos/login/owner_manager.h" |
15 #include "chrome/common/notification_observer.h" | 14 #include "chrome/common/notification_observer.h" |
16 #include "chrome/common/notification_registrar.h" | 15 #include "chrome/common/notification_registrar.h" |
17 #include "chrome/common/notification_service.h" | 16 #include "chrome/common/notification_service.h" |
| 17 #include "content/browser/browser_thread.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 template <typename T> struct DefaultLazyInstanceTraits; | 20 template <typename T> struct DefaultLazyInstanceTraits; |
21 } | 21 } |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 | 24 |
25 class OwnershipService : public NotificationObserver { | 25 class OwnershipService : public NotificationObserver { |
26 public: | 26 public: |
27 enum Status { | 27 enum Status { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 scoped_refptr<OwnerManager> manager_; | 109 scoped_refptr<OwnerManager> manager_; |
110 scoped_refptr<OwnerKeyUtils> utils_; | 110 scoped_refptr<OwnerKeyUtils> utils_; |
111 NotificationRegistrar notification_registrar_; | 111 NotificationRegistrar notification_registrar_; |
112 Status ownership_status_; | 112 Status ownership_status_; |
113 base::Lock ownership_status_lock_; | 113 base::Lock ownership_status_lock_; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace chromeos | 116 } // namespace chromeos |
117 | 117 |
118 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ | 118 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ |
OLD | NEW |