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

Side by Side Diff: components/sync_driver/model_associator.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_
6 #define COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ 6 #define COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
11 #include "sync/api/sync_error.h" 11 #include "components/sync/api/sync_error.h"
12 #include "sync/internal_api/public/base/model_type.h" 12 #include "components/sync/base/model_type.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 class BaseNode; 15 class BaseNode;
16 class SyncMergeResult; 16 class SyncMergeResult;
17 } 17 }
18 18
19 namespace sync_driver { 19 namespace sync_driver {
20 20
21 // This represents the fundamental operations used for model association that 21 // This represents the fundamental operations used for model association that
22 // are common to all ModelAssociators and do not depend on types of the models 22 // are common to all ModelAssociators and do not depend on types of the models
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 virtual void Associate(const Node* node, 88 virtual void Associate(const Node* node,
89 const syncer::BaseNode& sync_node) = 0; 89 const syncer::BaseNode& sync_node) = 0;
90 90
91 // Remove the association that corresponds to the given sync id. 91 // Remove the association that corresponds to the given sync id.
92 virtual void Disassociate(int64_t sync_id) = 0; 92 virtual void Disassociate(int64_t sync_id) = 0;
93 }; 93 };
94 94
95 } // namespace sync_driver 95 } // namespace sync_driver
96 96
97 #endif // COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ 97 #endif // COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_
OLDNEW
« no previous file with comments | « components/sync_driver/model_association_manager.cc ('k') | components/sync_driver/model_associator_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698