| 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_UPDATES_COMMAND_H_ | 5 #ifndef SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ |
| 6 #define SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ | 6 #define SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "sync/engine/model_changing_syncer_command.h" | 10 #include "sync/engine/model_changing_syncer_command.h" |
| 11 #include "sync/engine/syncer_types.h" | 11 #include "sync/engine/syncer_types.h" |
| 12 | 12 |
| 13 namespace syncable { | 13 namespace syncable { |
| 14 class WriteTransaction; | 14 class WriteTransaction; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace sync_pb { | 17 namespace sync_pb { |
| 18 class SyncEntity; | 18 class SyncEntity; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace csync { | 21 namespace syncer { |
| 22 | 22 |
| 23 class Cryptographer; | 23 class Cryptographer; |
| 24 | 24 |
| 25 // A syncer command for processing updates. | 25 // A syncer command for processing updates. |
| 26 // | 26 // |
| 27 // Preconditions - updates in the SyncerSesssion have been downloaded | 27 // Preconditions - updates in the SyncerSesssion have been downloaded |
| 28 // and verified. | 28 // and verified. |
| 29 // | 29 // |
| 30 // Postconditions - All of the verified SyncEntity data will be copied to | 30 // Postconditions - All of the verified SyncEntity data will be copied to |
| 31 // the server fields of the corresponding syncable entries. | 31 // the server fields of the corresponding syncable entries. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 43 sessions::SyncSession* session) OVERRIDE; | 43 sessions::SyncSession* session) OVERRIDE; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 ServerUpdateProcessingResult ProcessUpdate( | 46 ServerUpdateProcessingResult ProcessUpdate( |
| 47 const sync_pb::SyncEntity& proto_update, | 47 const sync_pb::SyncEntity& proto_update, |
| 48 const Cryptographer* cryptographer, | 48 const Cryptographer* cryptographer, |
| 49 syncable::WriteTransaction* const trans); | 49 syncable::WriteTransaction* const trans); |
| 50 DISALLOW_COPY_AND_ASSIGN(ProcessUpdatesCommand); | 50 DISALLOW_COPY_AND_ASSIGN(ProcessUpdatesCommand); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace csync | 53 } // namespace syncer |
| 54 | 54 |
| 55 #endif // SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ | 55 #endif // SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ |
| OLD | NEW |