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

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

Issue 867793003: Remove dependency on server generated type root folders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added extra comment about existing type root folder. Created 5 years, 10 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
« no previous file with comments | « no previous file | sync/engine/directory_update_handler.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ 5 #ifndef SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_
6 #define SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ 6 #define SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Its type must match this update handler's type. 84 // Its type must match this update handler's type.
85 void UpdateProgressMarker( 85 void UpdateProgressMarker(
86 const sync_pb::DataTypeProgressMarker& progress_marker); 86 const sync_pb::DataTypeProgressMarker& progress_marker);
87 87
88 bool IsValidProgressMarker( 88 bool IsValidProgressMarker(
89 const sync_pb::DataTypeProgressMarker& progress_marker) const; 89 const sync_pb::DataTypeProgressMarker& progress_marker) const;
90 90
91 // Skips all checks and goes straight to applying the updates. 91 // Skips all checks and goes straight to applying the updates.
92 SyncerError ApplyUpdatesImpl(sessions::StatusController* status); 92 SyncerError ApplyUpdatesImpl(sessions::StatusController* status);
93 93
94 // Creates root node for the handled model type.
95 void CreateTypeRoot(syncable::ModelNeutralWriteTransaction* trans);
96
94 syncable::Directory* dir_; 97 syncable::Directory* dir_;
95 ModelType type_; 98 ModelType type_;
96 scoped_refptr<ModelSafeWorker> worker_; 99 scoped_refptr<ModelSafeWorker> worker_;
97 DirectoryTypeDebugInfoEmitter* debug_info_emitter_; 100 DirectoryTypeDebugInfoEmitter* debug_info_emitter_;
98 101
99 scoped_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_; 102 scoped_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_;
100 103
101 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler); 104 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler);
102 }; 105 };
103 106
104 } // namespace syncer 107 } // namespace syncer
105 108
106 #endif // SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ 109 #endif // SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | sync/engine/directory_update_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698