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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix. And rebase Created 9 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
7 #pragma once
8
9 #include "chrome/browser/sync/glue/change_processor.h"
10
11 class SyncableService;
12
13 namespace browser_sync {
14
15 // TODO(sync): Have this become a SyncableService implementation and deprecate
16 // ChangeProcessor.
17 // For now, it acts as a dummy change processor that just passes all
18 // ApplySyncChanges commands onto the local SyncableService..
19 class GenericChangeProcessor : public ChangeProcessor {
20 public:
21 GenericChangeProcessor(SyncableService* local_service,
22 UnrecoverableErrorHandler* error_handler);
23 ~GenericChangeProcessor();
24
25 // ChangeProcessor interface.
26 // Just passes all arguments onto the |local_service_|
27 virtual void ApplyChangesFromSyncModel(
28 const sync_api::BaseTransaction* trans,
29 const sync_api::SyncManager::ChangeRecord* changes,
30 int change_count);
31 protected:
32 // ChangeProcessor interface.
33 virtual void StartImpl(Profile* profile); // Not implemented.
34 virtual void StopImpl(); // Not implemented.
35 private:
36 SyncableService* local_service_;
37 };
38
39 } // namespace browser_sync
40
41 #endif // CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/frontend_data_type_controller_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