| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
| 6 #define CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 6 #define CHROME_BROWSER_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 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace browser_sync { | 23 namespace browser_sync { |
| 24 | 24 |
| 25 class ProcessCommitResponseCommand : public ModelChangingSyncerCommand { | 25 class ProcessCommitResponseCommand : public ModelChangingSyncerCommand { |
| 26 public: | 26 public: |
| 27 | 27 |
| 28 ProcessCommitResponseCommand(); | 28 ProcessCommitResponseCommand(); |
| 29 virtual ~ProcessCommitResponseCommand(); | 29 virtual ~ProcessCommitResponseCommand(); |
| 30 | 30 |
| 31 protected: |
| 31 // ModelChangingSyncerCommand implementation. | 32 // ModelChangingSyncerCommand implementation. |
| 32 virtual bool ModelNeutralExecuteImpl(sessions::SyncSession* session) OVERRIDE; | 33 virtual std::set<ModelSafeGroup> GetGroupsToChange( |
| 34 const sessions::SyncSession& session) const OVERRIDE; |
| 35 virtual bool ModelNeutralExecuteImpl( |
| 36 sessions::SyncSession* session) OVERRIDE; |
| 33 virtual void ModelChangingExecuteImpl( | 37 virtual void ModelChangingExecuteImpl( |
| 34 sessions::SyncSession* session) OVERRIDE; | 38 sessions::SyncSession* session) OVERRIDE; |
| 35 | 39 |
| 36 private: | 40 private: |
| 37 CommitResponse::ResponseType ProcessSingleCommitResponse( | 41 CommitResponse::ResponseType ProcessSingleCommitResponse( |
| 38 syncable::WriteTransaction* trans, | 42 syncable::WriteTransaction* trans, |
| 39 const sync_pb::CommitResponse_EntryResponse& pb_commit_response, | 43 const sync_pb::CommitResponse_EntryResponse& pb_commit_response, |
| 40 const sync_pb::SyncEntity& pb_committed_entry, | 44 const sync_pb::SyncEntity& pb_committed_entry, |
| 41 const syncable::Id& pre_commit_id, | 45 const syncable::Id& pre_commit_id, |
| 42 std::set<syncable::Id>* conflicting_new_directory_ids, | 46 std::set<syncable::Id>* conflicting_new_directory_ids, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 const std::string& GetResultingPostCommitName( | 92 const std::string& GetResultingPostCommitName( |
| 89 const sync_pb::SyncEntity& committed_entry, | 93 const sync_pb::SyncEntity& committed_entry, |
| 90 const CommitResponse_EntryResponse& entry_response); | 94 const CommitResponse_EntryResponse& entry_response); |
| 91 | 95 |
| 92 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); | 96 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); |
| 93 }; | 97 }; |
| 94 | 98 |
| 95 } // namespace browser_sync | 99 } // namespace browser_sync |
| 96 | 100 |
| 97 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 101 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
| OLD | NEW |