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> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" |
13 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
14 #include "chrome/browser/chromeos/login/owner_key_utils.h" | 16 #include "chrome/browser/chromeos/login/owner_key_utils.h" |
15 #include "chrome/browser/chromeos/login/owner_manager.h" | 17 #include "chrome/browser/chromeos/login/owner_manager.h" |
16 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 18 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
17 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
19 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
20 | 22 |
21 namespace base { | 23 namespace base { |
22 template <typename T> struct DefaultLazyInstanceTraits; | 24 template <typename T> struct DefaultLazyInstanceTraits; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 scoped_refptr<OwnerKeyUtils> utils_; | 140 scoped_refptr<OwnerKeyUtils> utils_; |
139 scoped_ptr<em::PolicyData> policy_; | 141 scoped_ptr<em::PolicyData> policy_; |
140 content::NotificationRegistrar notification_registrar_; | 142 content::NotificationRegistrar notification_registrar_; |
141 volatile Status ownership_status_; | 143 volatile Status ownership_status_; |
142 base::Lock ownership_status_lock_; | 144 base::Lock ownership_status_lock_; |
143 }; | 145 }; |
144 | 146 |
145 } // namespace chromeos | 147 } // namespace chromeos |
146 | 148 |
147 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ | 149 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ |
OLD | NEW |