1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22

content / browser / gpu / gpu_disk_cache_factory.h [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();

}  // namespace content

#endif  // CONTENT_BROWSER_GPU_GPU_DISK_CACHE_FACTORY_H_