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: sync/api/sync_change_processor.h

Issue 11515009: [sync] Componentize sync: Part 2: Add SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR Feedback Created 8 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
« no previous file with comments | « sync/api/sync_change.h ('k') | sync/api/sync_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 SYNC_API_SYNC_CHANGE_PROCESSOR_H_ 5 #ifndef SYNC_API_SYNC_CHANGE_PROCESSOR_H_
6 #define SYNC_API_SYNC_CHANGE_PROCESSOR_H_ 6 #define SYNC_API_SYNC_CHANGE_PROCESSOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "sync/api/sync_error.h" 10 #include "sync/api/sync_error.h"
11 #include "sync/base/sync_export.h"
11 12
12 namespace tracked_objects { 13 namespace tracked_objects {
13 class Location; 14 class Location;
14 } // namespace tracked_objects 15 } // namespace tracked_objects
15 16
16 namespace syncer { 17 namespace syncer {
17 18
18 class SyncChange; 19 class SyncChange;
19 20
20 typedef std::vector<SyncChange> SyncChangeList; 21 typedef std::vector<SyncChange> SyncChangeList;
21 22
22 // An interface for services that handle receiving SyncChanges. 23 // An interface for services that handle receiving SyncChanges.
23 class SyncChangeProcessor { 24 class SYNC_EXPORT SyncChangeProcessor {
24 public: 25 public:
25 SyncChangeProcessor(); 26 SyncChangeProcessor();
26 virtual ~SyncChangeProcessor(); 27 virtual ~SyncChangeProcessor();
27 28
28 // Process a list of SyncChanges. 29 // Process a list of SyncChanges.
29 // Returns: A default SyncError (IsSet() == false) if no errors were 30 // Returns: A default SyncError (IsSet() == false) if no errors were
30 // encountered, and a filled SyncError (IsSet() == true) 31 // encountered, and a filled SyncError (IsSet() == true)
31 // otherwise. 32 // otherwise.
32 // Inputs: 33 // Inputs:
33 // |from_here|: allows tracking of where sync changes originate. 34 // |from_here|: allows tracking of where sync changes originate.
34 // |change_list|: is the list of sync changes in need of processing. 35 // |change_list|: is the list of sync changes in need of processing.
35 virtual SyncError ProcessSyncChanges( 36 virtual SyncError ProcessSyncChanges(
36 const tracked_objects::Location& from_here, 37 const tracked_objects::Location& from_here,
37 const SyncChangeList& change_list) = 0; 38 const SyncChangeList& change_list) = 0;
38 }; 39 };
39 40
40 } // namespace syncer 41 } // namespace syncer
41 42
42 #endif // SYNC_API_SYNC_CHANGE_PROCESSOR_H_ 43 #endif // SYNC_API_SYNC_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « sync/api/sync_change.h ('k') | sync/api/sync_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698