| OLD | NEW |
| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 ProcessCommitResponseCommand( | 54 ProcessCommitResponseCommand( |
| 55 const sessions::OrderedCommitSet& commit_set, | 55 const sessions::OrderedCommitSet& commit_set, |
| 56 const ClientToServerMessage& commit_message, | 56 const ClientToServerMessage& commit_message, |
| 57 const ClientToServerResponse& commit_response); | 57 const ClientToServerResponse& commit_response); |
| 58 virtual ~ProcessCommitResponseCommand(); | 58 virtual ~ProcessCommitResponseCommand(); |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 // ModelChangingSyncerCommand implementation. | 61 // ModelChangingSyncerCommand implementation. |
| 62 virtual std::set<ModelSafeGroup> GetGroupsToChange( | 62 virtual std::set<ModelSafeGroup> GetGroupsToChange( |
| 63 const sessions::SyncSession& session) const OVERRIDE; | 63 const sessions::SyncSession& session) const OVERRIDE; |
| 64 virtual SyncerError ModelNeutralExecuteImpl( | |
| 65 sessions::SyncSession* session) OVERRIDE; | |
| 66 virtual SyncerError ModelChangingExecuteImpl( | 64 virtual SyncerError ModelChangingExecuteImpl( |
| 67 sessions::SyncSession* session) OVERRIDE; | 65 sessions::SyncSession* session) OVERRIDE; |
| 68 | 66 |
| 69 private: | 67 private: |
| 70 CommitResponse::ResponseType ProcessSingleCommitResponse( | 68 CommitResponse::ResponseType ProcessSingleCommitResponse( |
| 71 syncable::WriteTransaction* trans, | 69 syncable::WriteTransaction* trans, |
| 72 const sync_pb::CommitResponse_EntryResponse& pb_commit_response, | 70 const sync_pb::CommitResponse_EntryResponse& pb_commit_response, |
| 73 const sync_pb::SyncEntity& pb_committed_entry, | 71 const sync_pb::SyncEntity& pb_committed_entry, |
| 74 const syncable::Id& pre_commit_id, | 72 const syncable::Id& pre_commit_id, |
| 75 std::set<syncable::Id>* deleted_folders); | 73 std::set<syncable::Id>* deleted_folders); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 const sessions::OrderedCommitSet& commit_set_; | 127 const sessions::OrderedCommitSet& commit_set_; |
| 130 const ClientToServerMessage& commit_message_; | 128 const ClientToServerMessage& commit_message_; |
| 131 const ClientToServerResponse& commit_response_; | 129 const ClientToServerResponse& commit_response_; |
| 132 | 130 |
| 133 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); | 131 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); |
| 134 }; | 132 }; |
| 135 | 133 |
| 136 } // namespace browser_sync | 134 } // namespace browser_sync |
| 137 | 135 |
| 138 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 136 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
| OLD | NEW |