// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMPLETION_BLOCKER_H_ #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMPLETION_BLOCKER_H_ #include "base/functional/callback.h" #include "base/supports_user_data.h" #include "components/download/public/common/download_item.h" // A subsystem may use a DownloadCompletionBlocker in conjunction with // DownloadManagerDelegate::ShouldCompleteDownload() in order to block the // completion of a DownloadItem. CompleteDownload() will run the most recent // callback set. class DownloadCompletionBlocker : public base::SupportsUserData::Data { … }; #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_COMPLETION_BLOCKER_H_