| 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> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "sync/engine/model_changing_syncer_command.h" | 14 #include "sync/engine/model_changing_syncer_command.h" |
| 15 #include "sync/engine/syncproto.h" | 15 #include "sync/engine/syncproto.h" |
| 16 | 16 |
| 17 namespace syncable { | 17 namespace syncable { |
| 18 class Id; | 18 class Id; |
| 19 class WriteTransaction; | 19 class WriteTransaction; |
| 20 class MutableEntry; | 20 class MutableEntry; |
| 21 class Directory; | 21 class Directory; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace csync { | 24 namespace syncer { |
| 25 | 25 |
| 26 namespace sessions { | 26 namespace sessions { |
| 27 class OrderedCommitSet; | 27 class OrderedCommitSet; |
| 28 } | 28 } |
| 29 | 29 |
| 30 // A class that processes the server's response to our commmit attempt. Note | 30 // A class that processes the server's response to our commmit attempt. Note |
| 31 // that some of the preliminary processing is performed in | 31 // that some of the preliminary processing is performed in |
| 32 // PostClientToServerMessage command. | 32 // PostClientToServerMessage command. |
| 33 // | 33 // |
| 34 // As part of processing the commit response, this command will modify sync | 34 // As part of processing the commit response, this command will modify sync |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 syncable::Directory *dir, | 124 syncable::Directory *dir, |
| 125 const std::vector<syncable::Id>& commit_ids); | 125 const std::vector<syncable::Id>& commit_ids); |
| 126 | 126 |
| 127 const sessions::OrderedCommitSet& commit_set_; | 127 const sessions::OrderedCommitSet& commit_set_; |
| 128 const ClientToServerMessage& commit_message_; | 128 const ClientToServerMessage& commit_message_; |
| 129 const ClientToServerResponse& commit_response_; | 129 const ClientToServerResponse& commit_response_; |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); | 131 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace csync | 134 } // namespace syncer |
| 135 | 135 |
| 136 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 136 #endif // SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
| OLD | NEW |