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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" | 10 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // and verified. | 27 // and verified. |
28 // | 28 // |
29 // Postconditions - All of the verified SyncEntity data will be copied to | 29 // Postconditions - All of the verified SyncEntity data will be copied to |
30 // the server fields of the corresponding syncable entries. | 30 // the server fields of the corresponding syncable entries. |
31 // TODO(tim): This should not be ModelChanging (bug 36592). | 31 // TODO(tim): This should not be ModelChanging (bug 36592). |
32 class ProcessUpdatesCommand : public ModelChangingSyncerCommand { | 32 class ProcessUpdatesCommand : public ModelChangingSyncerCommand { |
33 public: | 33 public: |
34 ProcessUpdatesCommand(); | 34 ProcessUpdatesCommand(); |
35 virtual ~ProcessUpdatesCommand(); | 35 virtual ~ProcessUpdatesCommand(); |
36 | 36 |
37 protected: | |
38 // ModelChangingSyncerCommand implementation. | 37 // ModelChangingSyncerCommand implementation. |
39 virtual std::set<ModelSafeGroup> GetGroupsToChange( | 38 virtual bool ModelNeutralExecuteImpl(sessions::SyncSession* session) OVERRIDE; |
40 const sessions::SyncSession& session) const OVERRIDE; | |
41 virtual bool ModelNeutralExecuteImpl( | |
42 sessions::SyncSession* session) OVERRIDE; | |
43 virtual void ModelChangingExecuteImpl( | 39 virtual void ModelChangingExecuteImpl( |
44 sessions::SyncSession* session) OVERRIDE; | 40 sessions::SyncSession* session) OVERRIDE; |
45 | 41 |
46 private: | 42 private: |
47 ServerUpdateProcessingResult ProcessUpdate( | 43 ServerUpdateProcessingResult ProcessUpdate( |
48 const syncable::ScopedDirLookup& dir, | 44 const syncable::ScopedDirLookup& dir, |
49 const sync_pb::SyncEntity& proto_update, | 45 const sync_pb::SyncEntity& proto_update, |
50 syncable::WriteTransaction* const trans); | 46 syncable::WriteTransaction* const trans); |
51 DISALLOW_COPY_AND_ASSIGN(ProcessUpdatesCommand); | 47 DISALLOW_COPY_AND_ASSIGN(ProcessUpdatesCommand); |
52 }; | 48 }; |
53 | 49 |
54 } // namespace browser_sync | 50 } // namespace browser_sync |
55 | 51 |
56 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ | 52 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ |
OLD | NEW |