Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: sync/syncable/nigori_handler.h

Issue 10844005: [Sync] Refactor GetEncryptedTypes usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + add dcheck Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/syncable/directory.cc ('k') | sync/syncable/nigori_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « sync/syncable/directory.cc ('k') | sync/syncable/nigori_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698