#include "storage/browser/blob/shareable_file_reference.h"
#include <map>
#include <utility>
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/sequence_checker.h"
#include "base/task/task_runner.h"
namespace storage {
namespace {
class ShareableFileMap { … };
base::LazyInstance<ShareableFileMap>::DestructorAtExit g_file_map = …;
}
scoped_refptr<ShareableFileReference> ShareableFileReference::Get(
const base::FilePath& path) { … }
scoped_refptr<ShareableFileReference> ShareableFileReference::GetOrCreate(
const base::FilePath& path,
FinalReleasePolicy policy,
base::TaskRunner* file_task_runner) { … }
scoped_refptr<ShareableFileReference> ShareableFileReference::GetOrCreate(
ScopedFile scoped_file) { … }
void ShareableFileReference::AddFinalReleaseCallback(
FinalReleaseCallback callback) { … }
ShareableFileReference::ShareableFileReference(ScopedFile scoped_file)
: … { … }
ShareableFileReference::~ShareableFileReference() { … }
}