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

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

Issue 8470005: Add OVERRIDE to chrome/browser/sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: includes Created 9 years, 1 month 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_BUILD_AND_PROCESS_CONFLICT_SETS_COMMAND_H_ 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_BUILD_AND_PROCESS_CONFLICT_SETS_COMMAND_H_
6 #define CHROME_BROWSER_SYNC_ENGINE_BUILD_AND_PROCESS_CONFLICT_SETS_COMMAND_H_ 6 #define CHROME_BROWSER_SYNC_ENGINE_BUILD_AND_PROCESS_CONFLICT_SETS_COMMAND_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
12 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" 13 #include "chrome/browser/sync/engine/model_changing_syncer_command.h"
13 #include "chrome/browser/sync/engine/model_safe_worker.h" 14 #include "chrome/browser/sync/engine/model_safe_worker.h"
14 15
15 namespace syncable { 16 namespace syncable {
16 class BaseTransaction; 17 class BaseTransaction;
17 class Entry; 18 class Entry;
18 class Id; 19 class Id;
19 class WriteTransaction; 20 class WriteTransaction;
20 } // namespace syncable 21 } // namespace syncable
21 22
22 namespace browser_sync { 23 namespace browser_sync {
23 24
24 class ConflictResolver; 25 class ConflictResolver;
25 class Cryptographer; 26 class Cryptographer;
26 27
27 namespace sessions { 28 namespace sessions {
28 class ConflictProgress; 29 class ConflictProgress;
29 class StatusController; 30 class StatusController;
30 } 31 }
31 32
32 class BuildAndProcessConflictSetsCommand : public ModelChangingSyncerCommand { 33 class BuildAndProcessConflictSetsCommand : public ModelChangingSyncerCommand {
33 public: 34 public:
34 BuildAndProcessConflictSetsCommand(); 35 BuildAndProcessConflictSetsCommand();
35 virtual ~BuildAndProcessConflictSetsCommand(); 36 virtual ~BuildAndProcessConflictSetsCommand();
36 37
37 // ModelChangingSyncerCommand implementation. 38 // ModelChangingSyncerCommand implementation.
38 virtual void ModelChangingExecuteImpl(sessions::SyncSession* session); 39 virtual void ModelChangingExecuteImpl(
40 sessions::SyncSession* session) OVERRIDE;
39 41
40 private: 42 private:
41 bool BuildAndProcessConflictSets(sessions::SyncSession* session); 43 bool BuildAndProcessConflictSets(sessions::SyncSession* session);
42 44
43 bool ProcessSingleDirectionConflictSets( 45 bool ProcessSingleDirectionConflictSets(
44 syncable::WriteTransaction* trans, ConflictResolver* resolver, 46 syncable::WriteTransaction* trans, ConflictResolver* resolver,
45 Cryptographer* cryptographer, sessions::StatusController* status, 47 Cryptographer* cryptographer, sessions::StatusController* status,
46 const ModelSafeRoutingInfo& routes); 48 const ModelSafeRoutingInfo& routes);
47 bool ApplyUpdatesTransactionally( 49 bool ApplyUpdatesTransactionally(
48 syncable::WriteTransaction* trans, 50 syncable::WriteTransaction* trans,
(...skipping 17 matching lines...) Expand all
66 void MergeSetsForPositionUpdate(syncable::BaseTransaction* trans, 68 void MergeSetsForPositionUpdate(syncable::BaseTransaction* trans,
67 syncable::Entry* entry, 69 syncable::Entry* entry,
68 sessions::ConflictProgress* conflict_progress); 70 sessions::ConflictProgress* conflict_progress);
69 71
70 DISALLOW_COPY_AND_ASSIGN(BuildAndProcessConflictSetsCommand); 72 DISALLOW_COPY_AND_ASSIGN(BuildAndProcessConflictSetsCommand);
71 }; 73 };
72 74
73 } // namespace browser_sync 75 } // namespace browser_sync
74 76
75 #endif // CHROME_BROWSER_SYNC_ENGINE_BUILD_AND_PROCESS_CONFLICT_SETS_COMMAND_H_ 77 #endif // CHROME_BROWSER_SYNC_ENGINE_BUILD_AND_PROCESS_CONFLICT_SETS_COMMAND_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/apply_updates_command.h ('k') | chrome/browser/sync/engine/build_commit_command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698