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

Side by Side Diff: chrome/browser/sync/api/sync_change_processor.h

Issue 8275018: Reland r105404 with compile warning fixed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync/api/sync_change_processor.cc » ('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) 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_API_SYNC_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_API_SYNC_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_API_SYNC_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_API_SYNC_CHANGE_PROCESSOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "chrome/browser/sync/api/sync_error.h" 11 #include "chrome/browser/sync/api/sync_error.h"
12 12
13 class SyncChange; 13 class SyncChange;
14 14
15 namespace tracked_objects { 15 namespace tracked_objects {
16 class Location; 16 class Location;
17 } // namespace tracked_objects 17 } // namespace tracked_objects
18 18
19 typedef std::vector<SyncChange> SyncChangeList; 19 typedef std::vector<SyncChange> SyncChangeList;
20 20
21 // An interface for services that handle receiving SyncChanges. 21 // An interface for services that handle receiving SyncChanges.
22 class SyncChangeProcessor { 22 class SyncChangeProcessor {
23 public: 23 public:
24 SyncChangeProcessor();
25 virtual ~SyncChangeProcessor();
26
24 // Process a list of SyncChanges. 27 // Process a list of SyncChanges.
25 // Returns: A default SyncError (IsSet() == false) if no errors were 28 // Returns: A default SyncError (IsSet() == false) if no errors were
26 // encountered, and a filled SyncError (IsSet() == true) 29 // encountered, and a filled SyncError (IsSet() == true)
27 // otherwise. 30 // otherwise.
28 // Inputs: 31 // Inputs:
29 // |from_here|: allows tracking of where sync changes originate. 32 // |from_here|: allows tracking of where sync changes originate.
30 // |change_list|: is the list of sync changes in need of processing. 33 // |change_list|: is the list of sync changes in need of processing.
31 virtual SyncError ProcessSyncChanges( 34 virtual SyncError ProcessSyncChanges(
32 const tracked_objects::Location& from_here, 35 const tracked_objects::Location& from_here,
33 const SyncChangeList& change_list) = 0; 36 const SyncChangeList& change_list) = 0;
34 protected: 37 protected:
35 virtual ~SyncChangeProcessor();
36 }; 38 };
37 39
38
39 #endif // CHROME_BROWSER_SYNC_API_SYNC_CHANGE_PROCESSOR_H_ 40 #endif // CHROME_BROWSER_SYNC_API_SYNC_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/api/sync_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698