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

Side by Side Diff: chrome/browser/sync/glue/generic_change_processor.h

Issue 7918001: [Sync] Move ChangeRecord into its own file (change_record.{h,cc}) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 3 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
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_GLUE_GENERIC_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 GenericChangeProcessor(SyncableService* local_service, 32 GenericChangeProcessor(SyncableService* local_service,
33 UnrecoverableErrorHandler* error_handler, 33 UnrecoverableErrorHandler* error_handler,
34 sync_api::UserShare* user_share); 34 sync_api::UserShare* user_share);
35 virtual ~GenericChangeProcessor(); 35 virtual ~GenericChangeProcessor();
36 36
37 // ChangeProcessor interface. 37 // ChangeProcessor interface.
38 // Build and store a list of all changes into |syncer_changes_|. 38 // Build and store a list of all changes into |syncer_changes_|.
39 virtual void ApplyChangesFromSyncModel( 39 virtual void ApplyChangesFromSyncModel(
40 const sync_api::BaseTransaction* trans, 40 const sync_api::BaseTransaction* trans,
41 const sync_api::SyncManager::ChangeRecord* changes, 41 const sync_api::ImmutableChangeRecordList& changes) OVERRIDE;
42 int change_count) OVERRIDE;
43 // Passes |syncer_changes_|, built in ApplyChangesFromSyncModel, onto 42 // Passes |syncer_changes_|, built in ApplyChangesFromSyncModel, onto
44 // |local_service_| by way of it's ProcessSyncChanges method. 43 // |local_service_| by way of it's ProcessSyncChanges method.
45 virtual void CommitChangesFromSyncModel() OVERRIDE; 44 virtual void CommitChangesFromSyncModel() OVERRIDE;
46 45
47 // SyncChangeProcessor implementation. 46 // SyncChangeProcessor implementation.
48 virtual SyncError ProcessSyncChanges( 47 virtual SyncError ProcessSyncChanges(
49 const tracked_objects::Location& from_here, 48 const tracked_objects::Location& from_here,
50 const SyncChangeList& change_list) OVERRIDE; 49 const SyncChangeList& change_list) OVERRIDE;
51 50
52 // Fills |current_sync_data| with all the syncer data for the specified type. 51 // Fills |current_sync_data| with all the syncer data for the specified type.
(...skipping 24 matching lines...) Expand all
77 // be able to access the sync model before the change processor begins 76 // be able to access the sync model before the change processor begins
78 // listening to changes (the local_service_ will be interacting with us 77 // listening to changes (the local_service_ will be interacting with us
79 // when it starts up). As such we can't wait until Start(_) has been called, 78 // when it starts up). As such we can't wait until Start(_) has been called,
80 // and have to keep a local pointer to the user_share. 79 // and have to keep a local pointer to the user_share.
81 sync_api::UserShare* user_share_; 80 sync_api::UserShare* user_share_;
82 }; 81 };
83 82
84 } // namespace browser_sync 83 } // namespace browser_sync
85 84
86 #endif // CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_ 85 #endif // CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/change_processor_mock.h ('k') | chrome/browser/sync/glue/generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698