#include "chrome/browser/extensions/api/storage/sync_value_store_cache.h"
#include <stddef.h>
#include <utility>
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "chrome/browser/extensions/api/storage/sync_storage_backend.h"
#include "chrome/browser/sync/glue/sync_start_util.h"
#include "components/value_store/value_store_factory.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/api/storage/backend_task_runner.h"
#include "extensions/common/api/storage.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_id.h"
BrowserThread;
namespace extensions {
namespace {
SettingsStorageQuotaEnforcer::Limits GetSyncQuotaLimits() { … }
}
SyncValueStoreCache::SyncValueStoreCache(
scoped_refptr<value_store::ValueStoreFactory> factory,
SettingsChangedCallback observer,
const base::FilePath& profile_path)
: … { … }
SyncValueStoreCache::~SyncValueStoreCache() { … }
base::WeakPtr<SyncValueStoreCache> SyncValueStoreCache::AsWeakPtr() { … }
syncer::SyncableService* SyncValueStoreCache::GetSyncableService(
syncer::DataType type) { … }
void SyncValueStoreCache::RunWithValueStoreForExtension(
StorageCallback callback,
scoped_refptr<const Extension> extension) { … }
void SyncValueStoreCache::DeleteStorageSoon(const ExtensionId& extension_id) { … }
void SyncValueStoreCache::InitOnBackend(
scoped_refptr<value_store::ValueStoreFactory> factory,
SequenceBoundSettingsChangedCallback observer,
const base::FilePath& profile_path) { … }
}