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_OWNER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/crypto/rsa_private_key.h" | |
13 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "crypto/rsa_private_key.h" |
14 #include "chrome/browser/chromeos/login/owner_key_utils.h" | 14 #include "chrome/browser/chromeos/login/owner_key_utils.h" |
15 #include "content/browser/browser_thread.h" | 15 #include "content/browser/browser_thread.h" |
16 | 16 |
17 class FilePath; | 17 class FilePath; |
18 class NotificationDetails; | 18 class NotificationDetails; |
19 class NotificationType; | 19 class NotificationType; |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 // This class allows the registration of an Owner of a Chromium OS device. | 23 // This class allows the registration of an Owner of a Chromium OS device. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void SendNotification(NotificationType type, | 82 void SendNotification(NotificationType type, |
83 const NotificationDetails& details); | 83 const NotificationDetails& details); |
84 | 84 |
85 // A helper method to call back a delegte on another thread. | 85 // A helper method to call back a delegte on another thread. |
86 void CallDelegate(Delegate* d, | 86 void CallDelegate(Delegate* d, |
87 const KeyOpCode return_code, | 87 const KeyOpCode return_code, |
88 const std::vector<uint8>& payload) { | 88 const std::vector<uint8>& payload) { |
89 d->OnKeyOpComplete(return_code, payload); | 89 d->OnKeyOpComplete(return_code, payload); |
90 } | 90 } |
91 | 91 |
92 scoped_ptr<base::RSAPrivateKey> private_key_; | 92 scoped_ptr<crypto::RSAPrivateKey> private_key_; |
93 std::vector<uint8> public_key_; | 93 std::vector<uint8> public_key_; |
94 | 94 |
95 scoped_refptr<OwnerKeyUtils> utils_; | 95 scoped_refptr<OwnerKeyUtils> utils_; |
96 | 96 |
97 friend class OwnerManagerTest; | 97 friend class OwnerManagerTest; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(OwnerManager); | 99 DISALLOW_COPY_AND_ASSIGN(OwnerManager); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace chromeos | 102 } // namespace chromeos |
103 | 103 |
104 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_MANAGER_H_ |
OLD | NEW |