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 // Various utility methods for nigori-based multi-type encryption. | 5 // Various utility methods for nigori-based multi-type encryption. |
6 | 6 |
7 #ifndef COMPONENTS_SYNC_SYNCABLE_NIGORI_UTIL_H_ | 7 #ifndef COMPONENTS_SYNC_SYNCABLE_NIGORI_UTIL_H_ |
8 #define COMPONENTS_SYNC_SYNCABLE_NIGORI_UTIL_H_ | 8 #define COMPONENTS_SYNC_SYNCABLE_NIGORI_UTIL_H_ |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "components/sync/base/model_type.h" | 11 #include "components/sync/base/model_type.h" |
12 #include "components/sync/protocol/nigori_specifics.pb.h" | 12 #include "components/sync/protocol/nigori_specifics.pb.h" |
13 | 13 |
14 namespace sync_pb { | 14 namespace sync_pb { |
15 class EntitySpecifics; | 15 class EntitySpecifics; |
16 } // namespace sync_pb | 16 } |
17 | 17 |
18 namespace syncer { | 18 namespace syncer { |
19 | |
20 class Cryptographer; | 19 class Cryptographer; |
21 | 20 |
22 namespace syncable { | 21 namespace syncable { |
23 | 22 |
24 const char kEncryptedString[] = "encrypted"; | 23 const char kEncryptedString[] = "encrypted"; |
25 | 24 |
26 class BaseTransaction; | 25 class BaseTransaction; |
27 class Entry; | 26 class Entry; |
28 class MutableEntry; | 27 class MutableEntry; |
29 class WriteTransaction; | 28 class WriteTransaction; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 sync_pb::NigoriSpecifics* nigori); | 68 sync_pb::NigoriSpecifics* nigori); |
70 | 69 |
71 // Extracts the set of encrypted types from a nigori node. | 70 // Extracts the set of encrypted types from a nigori node. |
72 ModelTypeSet GetEncryptedTypesFromNigori( | 71 ModelTypeSet GetEncryptedTypesFromNigori( |
73 const sync_pb::NigoriSpecifics& nigori); | 72 const sync_pb::NigoriSpecifics& nigori); |
74 | 73 |
75 } // namespace syncable | 74 } // namespace syncable |
76 } // namespace syncer | 75 } // namespace syncer |
77 | 76 |
78 #endif // COMPONENTS_SYNC_SYNCABLE_NIGORI_UTIL_H_ | 77 #endif // COMPONENTS_SYNC_SYNCABLE_NIGORI_UTIL_H_ |
OLD | NEW |