| 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 } | 315 } |
| 316 | 316 |
| 317 int64_t responseTime() const { return m_responseTime; } | 317 int64_t responseTime() const { return m_responseTime; } |
| 318 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } | 318 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime; } |
| 319 | 319 |
| 320 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } | 320 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } |
| 321 void setRemoteIPAddress(const AtomicString& value) { | 321 void setRemoteIPAddress(const AtomicString& value) { |
| 322 m_remoteIPAddress = value; | 322 m_remoteIPAddress = value; |
| 323 } | 323 } |
| 324 | 324 |
| 325 const AtomicString& alpnNegotiatedProtocol() const { |
| 326 return m_alpnNegotiatedProtocol; |
| 327 } |
| 328 void setALPNNegotiatedProtocol(const AtomicString& value) { |
| 329 m_alpnNegotiatedProtocol = value; |
| 330 } |
| 331 |
| 325 unsigned short remotePort() const { return m_remotePort; } | 332 unsigned short remotePort() const { return m_remotePort; } |
| 326 void setRemotePort(unsigned short value) { m_remotePort = value; } | 333 void setRemotePort(unsigned short value) { m_remotePort = value; } |
| 327 | 334 |
| 328 long long encodedDataLength() const { return m_encodedDataLength; } | 335 long long encodedDataLength() const { return m_encodedDataLength; } |
| 329 void addToEncodedDataLength(long long value); | 336 void addToEncodedDataLength(long long value); |
| 330 | 337 |
| 331 long long encodedBodyLength() const { return m_encodedBodyLength; } | 338 long long encodedBodyLength() const { return m_encodedBodyLength; } |
| 332 void addToEncodedBodyLength(long long value); | 339 void addToEncodedBodyLength(long long value); |
| 333 | 340 |
| 334 long long decodedBodyLength() const { return m_decodedBodyLength; } | 341 long long decodedBodyLength() const { return m_decodedBodyLength; } |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 // to be set if the response was fetched by a ServiceWorker. | 465 // to be set if the response was fetched by a ServiceWorker. |
| 459 Vector<String> m_corsExposedHeaderNames; | 466 Vector<String> m_corsExposedHeaderNames; |
| 460 | 467 |
| 461 // The time at which the response headers were received. For cached | 468 // The time at which the response headers were received. For cached |
| 462 // responses, this time could be "far" in the past. | 469 // responses, this time could be "far" in the past. |
| 463 int64_t m_responseTime; | 470 int64_t m_responseTime; |
| 464 | 471 |
| 465 // Remote IP address of the socket which fetched this resource. | 472 // Remote IP address of the socket which fetched this resource. |
| 466 AtomicString m_remoteIPAddress; | 473 AtomicString m_remoteIPAddress; |
| 467 | 474 |
| 475 // ALPN negotiated protocol of the socket which fetched this resource. |
| 476 AtomicString m_alpnNegotiatedProtocol; |
| 477 |
| 468 // Remote port number of the socket which fetched this resource. | 478 // Remote port number of the socket which fetched this resource. |
| 469 unsigned short m_remotePort; | 479 unsigned short m_remotePort; |
| 470 | 480 |
| 471 // Size of the response in bytes prior to decompression. | 481 // Size of the response in bytes prior to decompression. |
| 472 long long m_encodedDataLength; | 482 long long m_encodedDataLength; |
| 473 | 483 |
| 474 // Size of the response body in bytes prior to decompression. | 484 // Size of the response body in bytes prior to decompression. |
| 475 long long m_encodedBodyLength; | 485 long long m_encodedBodyLength; |
| 476 | 486 |
| 477 // Sizes of the response body in bytes after any content-encoding is | 487 // Sizes of the response body in bytes after any content-encoding is |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 bool m_wasAlternateProtocolAvailable; | 541 bool m_wasAlternateProtocolAvailable; |
| 532 bool m_wasFetchedViaProxy; | 542 bool m_wasFetchedViaProxy; |
| 533 bool m_wasFetchedViaServiceWorker; | 543 bool m_wasFetchedViaServiceWorker; |
| 534 bool m_wasFetchedViaForeignFetch; | 544 bool m_wasFetchedViaForeignFetch; |
| 535 bool m_wasFallbackRequiredByServiceWorker; | 545 bool m_wasFallbackRequiredByServiceWorker; |
| 536 WebServiceWorkerResponseType m_serviceWorkerResponseType; | 546 WebServiceWorkerResponseType m_serviceWorkerResponseType; |
| 537 KURL m_originalURLViaServiceWorker; | 547 KURL m_originalURLViaServiceWorker; |
| 538 String m_cacheStorageCacheName; | 548 String m_cacheStorageCacheName; |
| 539 int64_t m_responseTime; | 549 int64_t m_responseTime; |
| 540 String m_remoteIPAddress; | 550 String m_remoteIPAddress; |
| 551 String m_alpnNegotiatedProtocol; |
| 541 unsigned short m_remotePort; | 552 unsigned short m_remotePort; |
| 542 long long m_encodedDataLength; | 553 long long m_encodedDataLength; |
| 543 long long m_encodedBodyLength; | 554 long long m_encodedBodyLength; |
| 544 long long m_decodedBodyLength; | 555 long long m_decodedBodyLength; |
| 545 String m_downloadedFilePath; | 556 String m_downloadedFilePath; |
| 546 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 557 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
| 547 }; | 558 }; |
| 548 | 559 |
| 549 } // namespace blink | 560 } // namespace blink |
| 550 | 561 |
| 551 #endif // ResourceResponse_h | 562 #endif // ResourceResponse_h |
| OLD | NEW |