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

Side by Side Diff: sync/engine/syncer_util.h

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiix indent Created 8 years, 5 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/engine/syncer_unittest.cc ('k') | sync/engine/syncer_util.cc » ('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 // Utility functions manipulating syncable::Entries, intended for use by the 5 // Utility functions manipulating syncable::Entries, intended for use by the
6 // syncer. 6 // syncer.
7 7
8 #ifndef SYNC_ENGINE_SYNCER_UTIL_H_ 8 #ifndef SYNC_ENGINE_SYNCER_UTIL_H_
9 #define SYNC_ENGINE_SYNCER_UTIL_H_ 9 #define SYNC_ENGINE_SYNCER_UTIL_H_
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 syncable::Entry* target, 69 syncable::Entry* target,
70 const bool deleted); 70 const bool deleted);
71 71
72 // Assumes we have an existing entry; check here for updates that break 72 // Assumes we have an existing entry; check here for updates that break
73 // consistency rules. 73 // consistency rules.
74 VerifyResult VerifyUpdateConsistency(syncable::WriteTransaction* trans, 74 VerifyResult VerifyUpdateConsistency(syncable::WriteTransaction* trans,
75 const sync_pb::SyncEntity& update, 75 const sync_pb::SyncEntity& update,
76 syncable::MutableEntry* target, 76 syncable::MutableEntry* target,
77 const bool deleted, 77 const bool deleted,
78 const bool is_directory, 78 const bool is_directory,
79 syncer::ModelType model_type); 79 ModelType model_type);
80 80
81 // Assumes we have an existing entry; verify an update that seems to be 81 // Assumes we have an existing entry; verify an update that seems to be
82 // expressing an 'undelete' 82 // expressing an 'undelete'
83 VerifyResult VerifyUndelete(syncable::WriteTransaction* trans, 83 VerifyResult VerifyUndelete(syncable::WriteTransaction* trans,
84 const sync_pb::SyncEntity& update, 84 const sync_pb::SyncEntity& update,
85 syncable::MutableEntry* target); 85 syncable::MutableEntry* target);
86 86
87 // Append |item|, followed by a chain of its predecessors selected by 87 // Append |item|, followed by a chain of its predecessors selected by
88 // |inclusion_filter|, to the |commit_ids| vector and tag them as included by 88 // |inclusion_filter|, to the |commit_ids| vector and tag them as included by
89 // storing in the set |inserted_items|. |inclusion_filter| (typically one of 89 // storing in the set |inserted_items|. |inclusion_filter| (typically one of
(...skipping 20 matching lines...) Expand all
110 syncable::MetahandleSet* inserted_items, 110 syncable::MetahandleSet* inserted_items,
111 std::vector<syncable::Id>* commit_ids); 111 std::vector<syncable::Id>* commit_ids);
112 112
113 void MarkDeletedChildrenSynced( 113 void MarkDeletedChildrenSynced(
114 syncable::Directory* dir, 114 syncable::Directory* dir,
115 std::set<syncable::Id>* deleted_folders); 115 std::set<syncable::Id>* deleted_folders);
116 116
117 } // namespace syncer 117 } // namespace syncer
118 118
119 #endif // SYNC_ENGINE_SYNCER_UTIL_H_ 119 #endif // SYNC_ENGINE_SYNCER_UTIL_H_
OLDNEW
« no previous file with comments | « sync/engine/syncer_unittest.cc ('k') | sync/engine/syncer_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698