| 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_VERIFY_UPDATES_COMMAND_H_ | 5 #ifndef SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_ |
| 6 #define SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_ | 6 #define SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 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" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual SyncerError ModelChangingExecuteImpl( | 31 virtual SyncerError ModelChangingExecuteImpl( |
| 32 sessions::SyncSession* session) OVERRIDE; | 32 sessions::SyncSession* session) OVERRIDE; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 struct VerifyUpdateResult { | 35 struct VerifyUpdateResult { |
| 36 VerifyResult value; | 36 VerifyResult value; |
| 37 ModelSafeGroup placement; | 37 ModelSafeGroup placement; |
| 38 }; | 38 }; |
| 39 VerifyUpdateResult VerifyUpdate(syncable::WriteTransaction* trans, | 39 VerifyUpdateResult VerifyUpdate(syncable::WriteTransaction* trans, |
| 40 const sync_pb::SyncEntity& entry, | 40 const sync_pb::SyncEntity& entry, |
| 41 const ModelTypeSet& requested_types, | 41 ModelTypeSet requested_types, |
| 42 const ModelSafeRoutingInfo& routes); | 42 const ModelSafeRoutingInfo& routes); |
| 43 DISALLOW_COPY_AND_ASSIGN(VerifyUpdatesCommand); | 43 DISALLOW_COPY_AND_ASSIGN(VerifyUpdatesCommand); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace syncer | 46 } // namespace syncer |
| 47 | 47 |
| 48 #endif // SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_ | 48 #endif // SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_ |
| OLD | NEW |