| OLD | NEW |
| (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_ |
| OLD | NEW |