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