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 #ifndef SYNC_SYNCABLE_NIGORI_HANDLER_H_ | 5 #ifndef SYNC_SYNCABLE_NIGORI_HANDLER_H_ |
6 #define SYNC_SYNCABLE_NIGORI_HANDLER_H_ | 6 #define SYNC_SYNCABLE_NIGORI_HANDLER_H_ |
7 | 7 |
8 #include "sync/internal_api/public/base/model_type.h" | 8 #include "sync/internal_api/public/base/model_type.h" |
9 | 9 |
10 namespace sync_pb { | 10 namespace sync_pb { |
(...skipping 18 matching lines...) Expand all Loading... |
29 virtual void ApplyNigoriUpdate( | 29 virtual void ApplyNigoriUpdate( |
30 const sync_pb::NigoriSpecifics& nigori, | 30 const sync_pb::NigoriSpecifics& nigori, |
31 syncable::BaseTransaction* const trans) = 0; | 31 syncable::BaseTransaction* const trans) = 0; |
32 | 32 |
33 // Store the current encrypt everything/encrypted types state into |nigori|. | 33 // Store the current encrypt everything/encrypted types state into |nigori|. |
34 virtual void UpdateNigoriFromEncryptedTypes( | 34 virtual void UpdateNigoriFromEncryptedTypes( |
35 sync_pb::NigoriSpecifics* nigori, | 35 sync_pb::NigoriSpecifics* nigori, |
36 syncable::BaseTransaction* const trans) const = 0; | 36 syncable::BaseTransaction* const trans) const = 0; |
37 | 37 |
38 // Returns the set of currently encrypted types. | 38 // Returns the set of currently encrypted types. |
39 // TODO(zea): force callers to pass their syncable trans here. | 39 virtual ModelTypeSet GetEncryptedTypes( |
40 virtual ModelTypeSet GetEncryptedTypes() const = 0; | 40 syncable::BaseTransaction* const trans) const = 0; |
41 }; | 41 }; |
42 | 42 |
43 } // namespace syncable | 43 } // namespace syncable |
44 } // namespace syncer | 44 } // namespace syncer |
45 | 45 |
46 #endif // SYNC_SYNCABLE_NIGORI_HANDLER_H_ | 46 #endif // SYNC_SYNCABLE_NIGORI_HANDLER_H_ |
OLD | NEW |