OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_UPDATES_COMMAND_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ | 6 #define CHROME_BROWSER_SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ |
7 | 7 |
8 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" | 8 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" |
9 #include "chrome/browser/sync/engine/syncer_types.h" | 9 #include "chrome/browser/sync/engine/syncer_types.h" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 // | 25 // |
26 // Postconditions - All of the verified SyncEntity data will be copied to | 26 // Postconditions - All of the verified SyncEntity data will be copied to |
27 // the server fields of the corresponding syncable entries. | 27 // the server fields of the corresponding syncable entries. |
28 // TODO(tim): This should not be ModelChanging (bug 36592). | 28 // TODO(tim): This should not be ModelChanging (bug 36592). |
29 class ProcessUpdatesCommand : public ModelChangingSyncerCommand { | 29 class ProcessUpdatesCommand : public ModelChangingSyncerCommand { |
30 public: | 30 public: |
31 ProcessUpdatesCommand(); | 31 ProcessUpdatesCommand(); |
32 virtual ~ProcessUpdatesCommand(); | 32 virtual ~ProcessUpdatesCommand(); |
33 | 33 |
34 // ModelChangingSyncerCommand implementation. | 34 // ModelChangingSyncerCommand implementation. |
| 35 virtual bool ModelNeutralExecuteImpl(sessions::SyncSession* session); |
35 virtual void ModelChangingExecuteImpl(sessions::SyncSession* session); | 36 virtual void ModelChangingExecuteImpl(sessions::SyncSession* session); |
36 | 37 |
37 private: | 38 private: |
38 ServerUpdateProcessingResult ProcessUpdate( | 39 ServerUpdateProcessingResult ProcessUpdate( |
39 const syncable::ScopedDirLookup& dir, | 40 const syncable::ScopedDirLookup& dir, |
40 const sync_pb::SyncEntity& pb_entry); | 41 const sync_pb::SyncEntity& pb_entry); |
41 DISALLOW_COPY_AND_ASSIGN(ProcessUpdatesCommand); | 42 DISALLOW_COPY_AND_ASSIGN(ProcessUpdatesCommand); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace browser_sync | 45 } // namespace browser_sync |
45 | 46 |
46 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ | 47 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ |
OLD | NEW |