chromium/extensions/browser/updater/null_extension_cache.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/browser/updater/null_extension_cache.h"

#include "base/functional/callback.h"

namespace extensions {

NullExtensionCache::NullExtensionCache() = default;

NullExtensionCache::~NullExtensionCache() = default;

void NullExtensionCache::Start(base::OnceClosure callback) {}

void NullExtensionCache::Shutdown(base::OnceClosure callback) {}

void NullExtensionCache::AllowCaching(const std::string& id) {}

bool NullExtensionCache::GetExtension(const std::string& id,
                                      const std::string& expected_hash,
                                      base::FilePath* file_path,
                                      std::string* version) {}

void NullExtensionCache::PutExtension(const std::string& id,
                                      const std::string& expected_hash,
                                      const base::FilePath& file_path,
                                      const std::string& version,
                                      PutExtensionCallback callback) {}

bool NullExtensionCache::OnInstallFailed(const std::string& id,
                                         const std::string& hash,
                                         const CrxInstallError& error) {}

}  // namespace extensions