blob: 64714d6f4d25e4d88afdc4bed156c8be9b31f690 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
namespace extensions {
class ExtensionDownloader;
class ExtensionDownloaderDelegate;
class ManifestFetchData;
// A class for intercepting the work of checking for / downloading extension
// updates.
class ExtensionDownloaderTestDelegate {
// This method gets called when an update check is being started for an
// extension. Normally implementors should eventually call either
// OnExtensionDownloadFailed or OnExtensionDownloadFinished on
// |delegate|.
virtual void StartUpdateCheck(
ExtensionDownloader* downloader,
ExtensionDownloaderDelegate* delegate,
std::unique_ptr<ManifestFetchData> fetch_data) = 0;
} // namespace extensions