blob: 2e0293dfb251f50009920ec80767b95752cea5c4 [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_GPU_GPU_DISK_CACHE_FACTORY_H_
#define CONTENT_BROWSER_GPU_GPU_DISK_CACHE_FACTORY_H_
#include "content/common/content_export.h"
#include "gpu/ipc/host/gpu_disk_cache.h"
namespace content {
// Initializes the GpuDiskCacheFactory singleton instance.
CONTENT_EXPORT void InitGpuDiskCacheFactorySingleton();
// Returns an instance previously created by InitGpuDiskCacheFactorySingleton().
// This can return nullptr if an instance has not yet been created.
CONTENT_EXPORT gpu::GpuDiskCacheFactory* GetGpuDiskCacheFactorySingleton();
// Sets the GpuDiskCacheFactory singleton instance for testing.
CONTENT_EXPORT void SetGpuDiskCacheFactorySingletonForTesting(
gpu::GpuDiskCacheFactory* factory);
// Tears down the GpuDiskCacheFactory singleton instance. For use in tests.
CONTENT_EXPORT void DestroyGpuDiskCacheFactorySingletonForTesting();
} // namespace content
#endif // CONTENT_BROWSER_GPU_GPU_DISK_CACHE_FACTORY_H_