OLD | NEW |
1 // Copyright (c) 2011 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 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" |
11 #include "chrome/browser/sync/engine/syncer_types.h" | 11 #include "chrome/browser/sync/engine/syncer_types.h" |
(...skipping 21 matching lines...) Expand all Loading... |
33 // TODO(tim): This should not be ModelChanging (bug 36592). | 33 // TODO(tim): This should not be ModelChanging (bug 36592). |
34 class ProcessUpdatesCommand : public ModelChangingSyncerCommand { | 34 class ProcessUpdatesCommand : public ModelChangingSyncerCommand { |
35 public: | 35 public: |
36 ProcessUpdatesCommand(); | 36 ProcessUpdatesCommand(); |
37 virtual ~ProcessUpdatesCommand(); | 37 virtual ~ProcessUpdatesCommand(); |
38 | 38 |
39 protected: | 39 protected: |
40 // ModelChangingSyncerCommand implementation. | 40 // ModelChangingSyncerCommand implementation. |
41 virtual std::set<ModelSafeGroup> GetGroupsToChange( | 41 virtual std::set<ModelSafeGroup> GetGroupsToChange( |
42 const sessions::SyncSession& session) const OVERRIDE; | 42 const sessions::SyncSession& session) const OVERRIDE; |
43 virtual void ModelChangingExecuteImpl( | 43 virtual SyncerError ModelChangingExecuteImpl( |
44 sessions::SyncSession* session) OVERRIDE; | 44 sessions::SyncSession* session) OVERRIDE; |
45 | 45 |
46 private: | 46 private: |
47 ServerUpdateProcessingResult ProcessUpdate( | 47 ServerUpdateProcessingResult ProcessUpdate( |
48 const syncable::ScopedDirLookup& dir, | 48 const syncable::ScopedDirLookup& dir, |
49 const sync_pb::SyncEntity& proto_update, | 49 const sync_pb::SyncEntity& proto_update, |
50 const Cryptographer* cryptographer, | 50 const Cryptographer* cryptographer, |
51 syncable::WriteTransaction* const trans); | 51 syncable::WriteTransaction* const trans); |
52 DISALLOW_COPY_AND_ASSIGN(ProcessUpdatesCommand); | 52 DISALLOW_COPY_AND_ASSIGN(ProcessUpdatesCommand); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace browser_sync | 55 } // namespace browser_sync |
56 | 56 |
57 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ | 57 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_UPDATES_COMMAND_H_ |
OLD | NEW |