OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 5 #ifndef SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
6 #define SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 6 #define SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual std::set<ModelSafeGroup> GetGroupsToChange( | 63 virtual std::set<ModelSafeGroup> GetGroupsToChange( |
64 const sessions::SyncSession& session) const OVERRIDE; | 64 const sessions::SyncSession& session) const OVERRIDE; |
65 virtual SyncerError ModelChangingExecuteImpl( | 65 virtual SyncerError ModelChangingExecuteImpl( |
66 sessions::SyncSession* session) OVERRIDE; | 66 sessions::SyncSession* session) OVERRIDE; |
67 | 67 |
68 private: | 68 private: |
69 sync_pb::CommitResponse::ResponseType ProcessSingleCommitResponse( | 69 sync_pb::CommitResponse::ResponseType ProcessSingleCommitResponse( |
70 syncable::WriteTransaction* trans, | 70 syncable::WriteTransaction* trans, |
71 const sync_pb::CommitResponse_EntryResponse& pb_commit_response, | 71 const sync_pb::CommitResponse_EntryResponse& pb_commit_response, |
72 const sync_pb::SyncEntity& pb_committed_entry, | 72 const sync_pb::SyncEntity& pb_committed_entry, |
73 const syncable::Id& pre_commit_id, | 73 int64 metahandle, |
74 std::set<syncable::Id>* deleted_folders); | 74 std::set<syncable::Id>* deleted_folders); |
75 | 75 |
76 void ProcessSuccessfulCommitResponse( | 76 void ProcessSuccessfulCommitResponse( |
77 const sync_pb::SyncEntity& committed_entry, | 77 const sync_pb::SyncEntity& committed_entry, |
78 const sync_pb::CommitResponse_EntryResponse& entry_response, | 78 const sync_pb::CommitResponse_EntryResponse& entry_response, |
79 const syncable::Id& pre_commit_id, syncable::MutableEntry* local_entry, | 79 const syncable::Id& pre_commit_id, syncable::MutableEntry* local_entry, |
80 bool syncing_was_set, std::set<syncable::Id>* deleted_folders); | 80 bool syncing_was_set, std::set<syncable::Id>* deleted_folders); |
81 | 81 |
82 // Update the BASE_VERSION and SERVER_VERSION, post-commit. | 82 // Update the BASE_VERSION and SERVER_VERSION, post-commit. |
83 // Helper for ProcessSuccessfulCommitResponse. | 83 // Helper for ProcessSuccessfulCommitResponse. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 const sessions::OrderedCommitSet& commit_set_; | 125 const sessions::OrderedCommitSet& commit_set_; |
126 const sync_pb::ClientToServerMessage& commit_message_; | 126 const sync_pb::ClientToServerMessage& commit_message_; |
127 const sync_pb::ClientToServerResponse& commit_response_; | 127 const sync_pb::ClientToServerResponse& commit_response_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); | 129 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); |
130 }; | 130 }; |
131 | 131 |
132 } // namespace syncer | 132 } // namespace syncer |
133 | 133 |
134 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 134 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
OLD | NEW |