Update platform to remove file size from CreateInputFile API.

PiperOrigin-RevId: 846311268
This commit is contained in:
Francis Tsui
2025-12-18 09:52:50 -08:00
committed by Copybara-Service
parent b88fbc6636
commit a590b2a3e2
16 changed files with 38 additions and 51 deletions
@@ -192,13 +192,13 @@ ImplementationPlatform::CreateConditionVariable(Mutex* mutex) {
ABSL_DEPRECATED("This interface will be deleted in the near future.")
std::unique_ptr<InputFile> ImplementationPlatform::CreateInputFile(
PayloadId payload_id, std::int64_t total_size) {
PayloadId payload_id) {
std::string file_name(std::to_string(payload_id));
return windows::IOFile::CreateInputFile(GetDownloadPath(file_name));
}
std::unique_ptr<InputFile> ImplementationPlatform::CreateInputFile(
const std::string& file_path, size_t size) {
const std::string& file_path) {
return windows::IOFile::CreateInputFile(file_path);
}