OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 SYNC_SYNCABLE_NIGORI_UTIL_H_ | 7 #ifndef SYNC_SYNCABLE_NIGORI_UTIL_H_ |
8 #define SYNC_SYNCABLE_NIGORI_UTIL_H_ | 8 #define SYNC_SYNCABLE_NIGORI_UTIL_H_ |
9 #pragma once | |
10 | 9 |
11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
12 #include "sync/internal_api/public/base/model_type.h" | 11 #include "sync/internal_api/public/base/model_type.h" |
13 #include "sync/protocol/nigori_specifics.pb.h" | 12 #include "sync/protocol/nigori_specifics.pb.h" |
14 | 13 |
15 namespace sync_pb { | 14 namespace sync_pb { |
16 class EntitySpecifics; | 15 class EntitySpecifics; |
17 } | 16 } |
18 | 17 |
19 namespace syncer { | 18 namespace syncer { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Note: gracefully handles new_specifics aliasing with entry->Get(SPECIFICS). | 65 // Note: gracefully handles new_specifics aliasing with entry->Get(SPECIFICS). |
67 bool UpdateEntryWithEncryption( | 66 bool UpdateEntryWithEncryption( |
68 syncer::Cryptographer* cryptographer, | 67 syncer::Cryptographer* cryptographer, |
69 const sync_pb::EntitySpecifics& new_specifics, | 68 const sync_pb::EntitySpecifics& new_specifics, |
70 MutableEntry* entry); | 69 MutableEntry* entry); |
71 | 70 |
72 } // namespace syncable | 71 } // namespace syncable |
73 } // namespace syncer | 72 } // namespace syncer |
74 | 73 |
75 #endif // SYNC_SYNCABLE_NIGORI_UTIL_H_ | 74 #endif // SYNC_SYNCABLE_NIGORI_UTIL_H_ |
OLD | NEW |