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

Side by Side Diff: components/sync/api/sync_change_processor.h

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. 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
« no previous file with comments | « components/sync/api/sync_change.h ('k') | components/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 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 COMPONENTS_SYNC_API_SYNC_CHANGE_PROCESSOR_H_ 5 #ifndef COMPONENTS_SYNC_API_SYNC_CHANGE_PROCESSOR_H_
6 #define COMPONENTS_SYNC_API_SYNC_CHANGE_PROCESSOR_H_ 6 #define COMPONENTS_SYNC_API_SYNC_CHANGE_PROCESSOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "components/sync/api/sync_data.h" 11 #include "components/sync/api/sync_data.h"
12 #include "components/sync/api/sync_error.h" 12 #include "components/sync/api/sync_error.h"
13 #include "components/sync/base/model_type.h" 13 #include "components/sync/base/model_type.h"
14 #include "components/sync/base/sync_export.h"
15 14
16 namespace tracked_objects { 15 namespace tracked_objects {
17 class Location; 16 class Location;
18 } // namespace tracked_objects 17 } // namespace tracked_objects
19 18
20 namespace syncer { 19 namespace syncer {
21 20
22 class SyncChange; 21 class SyncChange;
23 22
24 typedef std::vector<SyncChange> SyncChangeList; 23 typedef std::vector<SyncChange> SyncChangeList;
25 24
26 // An interface for services that handle receiving SyncChanges. 25 // An interface for services that handle receiving SyncChanges.
27 class SYNC_EXPORT SyncChangeProcessor { 26 class SyncChangeProcessor {
28 public: 27 public:
29 // Whether a context change should force a datatype refresh or not. 28 // Whether a context change should force a datatype refresh or not.
30 enum ContextRefreshStatus { NO_REFRESH, REFRESH_NEEDED }; 29 enum ContextRefreshStatus { NO_REFRESH, REFRESH_NEEDED };
31 typedef base::Callback<void(const SyncData&)> GetSyncDataCallback; 30 typedef base::Callback<void(const SyncData&)> GetSyncDataCallback;
32 31
33 SyncChangeProcessor(); 32 SyncChangeProcessor();
34 virtual ~SyncChangeProcessor(); 33 virtual ~SyncChangeProcessor();
35 34
36 // Process a list of SyncChanges. 35 // Process a list of SyncChanges.
37 // Returns: A default SyncError (IsSet() == false) if no errors were 36 // Returns: A default SyncError (IsSet() == false) if no errors were
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // unrelated to datatype implementations. 73 // unrelated to datatype implementations.
75 virtual syncer::SyncError UpdateDataTypeContext( 74 virtual syncer::SyncError UpdateDataTypeContext(
76 ModelType type, 75 ModelType type,
77 ContextRefreshStatus refresh_status, 76 ContextRefreshStatus refresh_status,
78 const std::string& context); 77 const std::string& context);
79 }; 78 };
80 79
81 } // namespace syncer 80 } // namespace syncer
82 81
83 #endif // COMPONENTS_SYNC_API_SYNC_CHANGE_PROCESSOR_H_ 82 #endif // COMPONENTS_SYNC_API_SYNC_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « components/sync/api/sync_change.h ('k') | components/sync/api/sync_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698