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

Side by Side Diff: components/sync/driver/model_associator.h

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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 "components/sync/api/sync_error.h"
12 #include "components/sync/base/model_type.h" 11 #include "components/sync/base/model_type.h"
12 #include "components/sync/model/sync_error.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 class BaseNode; 16 class BaseNode;
17 class SyncMergeResult; 17 class SyncMergeResult;
18 18
19 // This represents the fundamental operations used for model association that 19 // This represents the fundamental operations used for model association that
20 // are common to all ModelAssociators and do not depend on types of the models 20 // are common to all ModelAssociators and do not depend on types of the models
21 // being associated. 21 // being associated.
22 class AssociatorInterface { 22 class AssociatorInterface {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Associates the given chrome node with the given sync node. 83 // Associates the given chrome node with the given sync node.
84 virtual void Associate(const Node* node, const BaseNode& sync_node) = 0; 84 virtual void Associate(const Node* node, const BaseNode& sync_node) = 0;
85 85
86 // Remove the association that corresponds to the given sync id. 86 // Remove the association that corresponds to the given sync id.
87 virtual void Disassociate(int64_t sync_id) = 0; 87 virtual void Disassociate(int64_t sync_id) = 0;
88 }; 88 };
89 89
90 } // namespace syncer 90 } // namespace syncer
91 91
92 #endif // COMPONENTS_SYNC_DRIVER_MODEL_ASSOCIATOR_H_ 92 #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