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

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

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights 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 #pragma once 10 #pragma once
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 syncable::Entry* target, 68 syncable::Entry* target,
69 const bool deleted); 69 const bool deleted);
70 70
71 // Assumes we have an existing entry; check here for updates that break 71 // Assumes we have an existing entry; check here for updates that break
72 // consistency rules. 72 // consistency rules.
73 VerifyResult VerifyUpdateConsistency(syncable::WriteTransaction* trans, 73 VerifyResult VerifyUpdateConsistency(syncable::WriteTransaction* trans,
74 const SyncEntity& update, 74 const SyncEntity& update,
75 syncable::MutableEntry* target, 75 syncable::MutableEntry* target,
76 const bool deleted, 76 const bool deleted,
77 const bool is_directory, 77 const bool is_directory,
78 syncable::ModelType model_type); 78 syncer::ModelType model_type);
79 79
80 // Assumes we have an existing entry; verify an update that seems to be 80 // Assumes we have an existing entry; verify an update that seems to be
81 // expressing an 'undelete' 81 // expressing an 'undelete'
82 VerifyResult VerifyUndelete(syncable::WriteTransaction* trans, 82 VerifyResult VerifyUndelete(syncable::WriteTransaction* trans,
83 const SyncEntity& update, 83 const SyncEntity& update,
84 syncable::MutableEntry* target); 84 syncable::MutableEntry* target);
85 85
86 // Append |item|, followed by a chain of its predecessors selected by 86 // Append |item|, followed by a chain of its predecessors selected by
87 // |inclusion_filter|, to the |commit_ids| vector and tag them as included by 87 // |inclusion_filter|, to the |commit_ids| vector and tag them as included by
88 // storing in the set |inserted_items|. |inclusion_filter| (typically one of 88 // storing in the set |inserted_items|. |inclusion_filter| (typically one of
(...skipping 20 matching lines...) Expand all
109 syncable::MetahandleSet* inserted_items, 109 syncable::MetahandleSet* inserted_items,
110 std::vector<syncable::Id>* commit_ids); 110 std::vector<syncable::Id>* commit_ids);
111 111
112 void MarkDeletedChildrenSynced( 112 void MarkDeletedChildrenSynced(
113 syncable::Directory* dir, 113 syncable::Directory* dir,
114 std::set<syncable::Id>* deleted_folders); 114 std::set<syncable::Id>* deleted_folders);
115 115
116 } // namespace syncer 116 } // namespace syncer
117 117
118 #endif // SYNC_ENGINE_SYNCER_UTIL_H_ 118 #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