| OLD | NEW |
| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 271 |
| 272 int64_t responseTime() const { return m_responseTime; } | 272 int64_t responseTime() const { return m_responseTime; } |
| 273 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime;
} | 273 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime;
} |
| 274 | 274 |
| 275 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } | 275 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } |
| 276 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val
ue; } | 276 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val
ue; } |
| 277 | 277 |
| 278 unsigned short remotePort() const { return m_remotePort; } | 278 unsigned short remotePort() const { return m_remotePort; } |
| 279 void setRemotePort(unsigned short value) { m_remotePort = value; } | 279 void setRemotePort(unsigned short value) { m_remotePort = value; } |
| 280 | 280 |
| 281 long long encodedDataLength() const { return m_encodedDataLength; } |
| 282 void addToEncodedDataLength(long long value); |
| 283 |
| 281 long long encodedBodyLength() const { return m_encodedBodyLength; } | 284 long long encodedBodyLength() const { return m_encodedBodyLength; } |
| 282 void addToEncodedBodyLength(int value); | 285 void addToEncodedBodyLength(long long value); |
| 283 | 286 |
| 284 long long decodedBodyLength() const { return m_decodedBodyLength; } | 287 long long decodedBodyLength() const { return m_decodedBodyLength; } |
| 285 void addToDecodedBodyLength(int value); | 288 void addToDecodedBodyLength(long long value); |
| 286 | 289 |
| 287 const String& downloadedFilePath() const { return m_downloadedFilePath; } | 290 const String& downloadedFilePath() const { return m_downloadedFilePath; } |
| 288 void setDownloadedFilePath(const String&); | 291 void setDownloadedFilePath(const String&); |
| 289 | 292 |
| 290 // Extra data associated with this response. | 293 // Extra data associated with this response. |
| 291 ExtraData* getExtraData() const { return m_extraData.get(); } | 294 ExtraData* getExtraData() const { return m_extraData.get(); } |
| 292 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } | 295 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData
; } |
| 293 | 296 |
| 294 unsigned memoryUsage() const | 297 unsigned memoryUsage() const |
| 295 { | 298 { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 // The time at which the response headers were received. For cached | 408 // The time at which the response headers were received. For cached |
| 406 // responses, this time could be "far" in the past. | 409 // responses, this time could be "far" in the past. |
| 407 int64_t m_responseTime; | 410 int64_t m_responseTime; |
| 408 | 411 |
| 409 // Remote IP address of the socket which fetched this resource. | 412 // Remote IP address of the socket which fetched this resource. |
| 410 AtomicString m_remoteIPAddress; | 413 AtomicString m_remoteIPAddress; |
| 411 | 414 |
| 412 // Remote port number of the socket which fetched this resource. | 415 // Remote port number of the socket which fetched this resource. |
| 413 unsigned short m_remotePort; | 416 unsigned short m_remotePort; |
| 414 | 417 |
| 418 // Size of the response in bytes prior to decompression. |
| 419 long long m_encodedDataLength; |
| 420 |
| 415 // Size of the response body in bytes prior to decompression. | 421 // Size of the response body in bytes prior to decompression. |
| 416 long long m_encodedBodyLength; | 422 long long m_encodedBodyLength; |
| 417 | 423 |
| 418 // Sizes of the response body in bytes after any content-encoding is | 424 // Sizes of the response body in bytes after any content-encoding is |
| 419 // removed. | 425 // removed. |
| 420 long long m_decodedBodyLength; | 426 long long m_decodedBodyLength; |
| 421 | 427 |
| 422 // The downloaded file path if the load streamed to a file. | 428 // The downloaded file path if the load streamed to a file. |
| 423 String m_downloadedFilePath; | 429 String m_downloadedFilePath; |
| 424 | 430 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 bool m_wasFetchedViaProxy; | 467 bool m_wasFetchedViaProxy; |
| 462 bool m_wasFetchedViaServiceWorker; | 468 bool m_wasFetchedViaServiceWorker; |
| 463 bool m_wasFetchedViaForeignFetch; | 469 bool m_wasFetchedViaForeignFetch; |
| 464 bool m_wasFallbackRequiredByServiceWorker; | 470 bool m_wasFallbackRequiredByServiceWorker; |
| 465 WebServiceWorkerResponseType m_serviceWorkerResponseType; | 471 WebServiceWorkerResponseType m_serviceWorkerResponseType; |
| 466 KURL m_originalURLViaServiceWorker; | 472 KURL m_originalURLViaServiceWorker; |
| 467 String m_cacheStorageCacheName; | 473 String m_cacheStorageCacheName; |
| 468 int64_t m_responseTime; | 474 int64_t m_responseTime; |
| 469 String m_remoteIPAddress; | 475 String m_remoteIPAddress; |
| 470 unsigned short m_remotePort; | 476 unsigned short m_remotePort; |
| 477 long long m_encodedDataLength; |
| 471 long long m_encodedBodyLength; | 478 long long m_encodedBodyLength; |
| 472 long long m_decodedBodyLength; | 479 long long m_decodedBodyLength; |
| 473 String m_downloadedFilePath; | 480 String m_downloadedFilePath; |
| 474 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 481 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
| 475 }; | 482 }; |
| 476 | 483 |
| 477 } // namespace blink | 484 } // namespace blink |
| 478 | 485 |
| 479 #endif // ResourceResponse_h | 486 #endif // ResourceResponse_h |
| OLD | NEW |