#ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_CORE_H_
#define SYNC_INTERNAL_API_PUBLIC_SYNC_CORE_H_
#include "base/basictypes.h"
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/base/model_type.h"
namespace syncer {
class ModelTypeRegistry;
class NonBlockingTypeProcessor;
class SYNC_EXPORT_PRIVATE SyncCore {
public:
explicit SyncCore(ModelTypeRegistry* model_type_registry);
~SyncCore();
void ConnectSyncTypeToCore(
syncer::ModelType type,
scoped_refptr<base::SequencedTaskRunner> datatype_task_runner,
base::WeakPtr<NonBlockingTypeProcessor> sync_client);
base::WeakPtr<SyncCore> AsWeakPtr();
private:
ModelTypeRegistry* model_type_registry_;
base::WeakPtrFactory<SyncCore> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(SyncCore);
};
}
#endif