| 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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // | 49 // |
| 50 // The commit_response parameter contains the response received from the | 50 // The commit_response parameter contains the response received from the |
| 51 // server. This may be uninitialized if we were unable to contact the server | 51 // server. This may be uninitialized if we were unable to contact the server |
| 52 // or a serious error was encountered. | 52 // or a serious error was encountered. |
| 53 ProcessCommitResponseCommand( | 53 ProcessCommitResponseCommand( |
| 54 const sessions::OrderedCommitSet& commit_set, | 54 const sessions::OrderedCommitSet& commit_set, |
| 55 const sync_pb::ClientToServerMessage& commit_message, | 55 const sync_pb::ClientToServerMessage& commit_message, |
| 56 const sync_pb::ClientToServerResponse& commit_response); | 56 const sync_pb::ClientToServerResponse& commit_response); |
| 57 virtual ~ProcessCommitResponseCommand(); | 57 virtual ~ProcessCommitResponseCommand(); |
| 58 | 58 |
| 59 // SyncerCommand override |
| 60 virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE; |
| 61 |
| 59 protected: | 62 protected: |
| 60 // ModelChangingSyncerCommand implementation. | 63 // ModelChangingSyncerCommand implementation. |
| 61 virtual std::set<ModelSafeGroup> GetGroupsToChange( | 64 virtual std::set<ModelSafeGroup> GetGroupsToChange( |
| 62 const sessions::SyncSession& session) const OVERRIDE; | 65 const sessions::SyncSession& session) const OVERRIDE; |
| 63 virtual SyncerError ModelChangingExecuteImpl( | 66 virtual SyncerError ModelChangingExecuteImpl( |
| 64 sessions::SyncSession* session) OVERRIDE; | 67 sessions::SyncSession* session) OVERRIDE; |
| 65 | 68 |
| 66 private: | 69 private: |
| 67 sync_pb::CommitResponse::ResponseType ProcessSingleCommitResponse( | 70 sync_pb::CommitResponse::ResponseType ProcessSingleCommitResponse( |
| 68 syncable::WriteTransaction* trans, | 71 syncable::WriteTransaction* trans, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 const sessions::OrderedCommitSet& commit_set_; | 129 const sessions::OrderedCommitSet& commit_set_; |
| 127 const sync_pb::ClientToServerMessage& commit_message_; | 130 const sync_pb::ClientToServerMessage& commit_message_; |
| 128 const sync_pb::ClientToServerResponse& commit_response_; | 131 const sync_pb::ClientToServerResponse& commit_response_; |
| 129 | 132 |
| 130 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); | 133 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); |
| 131 }; | 134 }; |
| 132 | 135 |
| 133 } // namespace syncer | 136 } // namespace syncer |
| 134 | 137 |
| 135 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 138 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
| OLD | NEW |