Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Side by Side Diff: chrome/browser/sync/engine/process_updates_command.h

Issue 9113024: Add return values to SyncerCommand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move syncer_error.* to internal_api/includes Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/process_commit_response_command.cc ('k') | chrome/browser/sync/engine/process_updates_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698