| Index: chrome/browser/sync/glue/generic_change_processor.h
|
| diff --git a/chrome/browser/sync/glue/generic_change_processor.h b/chrome/browser/sync/glue/generic_change_processor.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..714fbb9081a9d7df843ba6be72a506e134a71865
|
| --- /dev/null
|
| +++ b/chrome/browser/sync/glue/generic_change_processor.h
|
| @@ -0,0 +1,43 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
|
| +#define CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
|
| +#pragma once
|
| +
|
| +#include "chrome/browser/sync/glue/change_processor.h"
|
| +
|
| +namespace browser_sync {
|
| +
|
| +class NewAssociatorInterface;
|
| +
|
| +// TODO(zea): extract common change processor functionality into this class
|
| +// and have all new associator's use it. Eventually we want all sync_api
|
| +// interaction to happen within this change processor, and have the model
|
| +// associator's just process protobuf specifics.
|
| +// For now, it acts as a dummy change processor that just passes all
|
| +// ApplySyncChanges commands onto it's model associator.
|
| +class GenericChangeProcessor : public ChangeProcessor {
|
| + public:
|
| + GenericChangeProcessor(UnrecoverableErrorHandler* error_handler,
|
| + NewAssociatorInterface* model_associator);
|
| + ~GenericChangeProcessor();
|
| +
|
| + // ChangeProcessor interface.
|
| + // Just passes all arguments onto the |model_associator_|
|
| + virtual void ApplyChangesFromSyncModel(
|
| + const sync_api::BaseTransaction* trans,
|
| + const sync_api::SyncManager::ChangeRecord* changes,
|
| + int change_count);
|
| + protected:
|
| + // ChangeProcessor interface.
|
| + virtual void StartImpl(Profile* profile); // Not implemented.
|
| + virtual void StopImpl(); // Not implemented.
|
| + private:
|
| + NewAssociatorInterface* model_associator_;
|
| +};
|
| +
|
| +} // namespace browser_sync
|
| +
|
| +#endif // CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
|
|
|