Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceResponse.h

Issue 2835123005: Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData() (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 remote_ip_address_ = value; 338 remote_ip_address_ = value;
339 } 339 }
340 340
341 unsigned short RemotePort() const { return remote_port_; } 341 unsigned short RemotePort() const { return remote_port_; }
342 void SetRemotePort(unsigned short value) { remote_port_ = value; } 342 void SetRemotePort(unsigned short value) { remote_port_ = value; }
343 343
344 long long EncodedDataLength() const { return encoded_data_length_; } 344 long long EncodedDataLength() const { return encoded_data_length_; }
345 void SetEncodedDataLength(long long value); 345 void SetEncodedDataLength(long long value);
346 346
347 long long EncodedBodyLength() const { return encoded_body_length_; } 347 long long EncodedBodyLength() const { return encoded_body_length_; }
348 void AddToEncodedBodyLength(long long value); 348 void SetEncodedBodyLength(long long value);
349 349
350 long long DecodedBodyLength() const { return decoded_body_length_; } 350 long long DecodedBodyLength() const { return decoded_body_length_; }
351 void AddToDecodedBodyLength(long long value); 351 void SetDecodedBodyLength(long long value);
352 352
353 const String& DownloadedFilePath() const { return downloaded_file_path_; } 353 const String& DownloadedFilePath() const { return downloaded_file_path_; }
354 void SetDownloadedFilePath(const String&); 354 void SetDownloadedFilePath(const String&);
355 355
356 // Extra data associated with this response. 356 // Extra data associated with this response.
357 ExtraData* GetExtraData() const { return extra_data_.Get(); } 357 ExtraData* GetExtraData() const { return extra_data_.Get(); }
358 void SetExtraData(PassRefPtr<ExtraData> extra_data) { 358 void SetExtraData(PassRefPtr<ExtraData> extra_data) {
359 extra_data_ = std::move(extra_data); 359 extra_data_ = std::move(extra_data);
360 } 360 }
361 361
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 long long encoded_data_length_; 548 long long encoded_data_length_;
549 long long encoded_body_length_; 549 long long encoded_body_length_;
550 long long decoded_body_length_; 550 long long decoded_body_length_;
551 String downloaded_file_path_; 551 String downloaded_file_path_;
552 RefPtr<BlobDataHandle> downloaded_file_handle_; 552 RefPtr<BlobDataHandle> downloaded_file_handle_;
553 }; 553 };
554 554
555 } // namespace blink 555 } // namespace blink
556 556
557 #endif // ResourceResponse_h 557 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698