// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_SAVE_INFO_H_ #define COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_SAVE_INFO_H_ #include <stdint.h> #include <memory> #include "base/files/file.h" #include "base/files/file_path.h" #include "components/download/public/common/download_export.h" #include "crypto/secure_hash.h" namespace download { // Invalid offset for http range request. constexpr int64_t kInvalidRange = …; // Holds the information about how to save a download file. // In the case of download continuation, |file_path| is set to the current file // name, |offset| is set to the point where we left off, and |hash_state| will // hold the state of the hash algorithm where we left off. struct COMPONENTS_DOWNLOAD_EXPORT DownloadSaveInfo { … }; } // namespace download #endif // COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_SAVE_INFO_H_