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

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

Issue 9036003: Avoid useless SYNC_CYCLE_CONTINUATION sync cycle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 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_VERIFY_UPDATES_COMMAND_H_ 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_ 6 #define CHROME_BROWSER_SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 12 matching lines...) Expand all
23 // noted in the SyncSession after this command is executed. 23 // noted in the SyncSession after this command is executed.
24 class VerifyUpdatesCommand : public ModelChangingSyncerCommand { 24 class VerifyUpdatesCommand : public ModelChangingSyncerCommand {
25 public: 25 public:
26 VerifyUpdatesCommand(); 26 VerifyUpdatesCommand();
27 virtual ~VerifyUpdatesCommand(); 27 virtual ~VerifyUpdatesCommand();
28 28
29 protected: 29 protected:
30 // ModelChangingSyncerCommand implementation. 30 // ModelChangingSyncerCommand implementation.
31 virtual std::set<ModelSafeGroup> GetGroupsToChange( 31 virtual std::set<ModelSafeGroup> GetGroupsToChange(
32 const sessions::SyncSession& session) const OVERRIDE; 32 const sessions::SyncSession& session) const OVERRIDE;
33 virtual void ModelChangingExecuteImpl( 33 virtual SyncerError ModelChangingExecuteImpl(
34 sessions::SyncSession* session) OVERRIDE; 34 sessions::SyncSession* session) OVERRIDE;
35 35
36 private: 36 private:
37 struct VerifyUpdateResult { 37 struct VerifyUpdateResult {
38 VerifyResult value; 38 VerifyResult value;
39 ModelSafeGroup placement; 39 ModelSafeGroup placement;
40 }; 40 };
41 VerifyUpdateResult VerifyUpdate(syncable::WriteTransaction* trans, 41 VerifyUpdateResult VerifyUpdate(syncable::WriteTransaction* trans,
42 const SyncEntity& entry, 42 const SyncEntity& entry,
43 const ModelSafeRoutingInfo& routes); 43 const ModelSafeRoutingInfo& routes);
44 DISALLOW_COPY_AND_ASSIGN(VerifyUpdatesCommand); 44 DISALLOW_COPY_AND_ASSIGN(VerifyUpdatesCommand);
45 }; 45 };
46 46
47 } // namespace browser_sync 47 } // namespace browser_sync
48 48
49 #endif // CHROME_BROWSER_SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_ 49 #endif // CHROME_BROWSER_SYNC_ENGINE_VERIFY_UPDATES_COMMAND_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncer_proto_util.cc ('k') | chrome/browser/sync/engine/verify_updates_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698