OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SYNC_BASE_CRYPTOGRAPHER_H_ | 5 #ifndef COMPONENTS_SYNC_BASE_CRYPTOGRAPHER_H_ |
6 #define COMPONENTS_SYNC_BASE_CRYPTOGRAPHER_H_ | 6 #define COMPONENTS_SYNC_BASE_CRYPTOGRAPHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "components/sync/base/nigori.h" | 14 #include "components/sync/base/nigori.h" |
15 #include "components/sync/protocol/encryption.pb.h" | 15 #include "components/sync/protocol/encryption.pb.h" |
16 | 16 |
17 namespace sync_pb { | 17 namespace sync_pb { |
18 class NigoriKeyBag; | 18 class NigoriKeyBag; |
19 class NigoriSpecifics; | |
20 } | 19 } |
21 | 20 |
22 namespace syncer { | 21 namespace syncer { |
23 | 22 |
24 class Encryptor; | 23 class Encryptor; |
25 | 24 |
26 extern const char kNigoriTag[]; | 25 extern const char kNigoriTag[]; |
27 | 26 |
28 // The parameters used to initialize a Nigori instance. | 27 // The parameters used to initialize a Nigori instance. |
29 struct KeyParams { | 28 struct KeyParams { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 std::string default_nigori_name_; | 209 std::string default_nigori_name_; |
211 | 210 |
212 std::unique_ptr<sync_pb::EncryptedData> pending_keys_; | 211 std::unique_ptr<sync_pb::EncryptedData> pending_keys_; |
213 | 212 |
214 DISALLOW_ASSIGN(Cryptographer); | 213 DISALLOW_ASSIGN(Cryptographer); |
215 }; | 214 }; |
216 | 215 |
217 } // namespace syncer | 216 } // namespace syncer |
218 | 217 |
219 #endif // COMPONENTS_SYNC_BASE_CRYPTOGRAPHER_H_ | 218 #endif // COMPONENTS_SYNC_BASE_CRYPTOGRAPHER_H_ |
OLD | NEW |