| 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 |
| 332 const AtomicString& connectionInfo() const { return m_connectionInfo; } |
| 333 void setConnectionInfo(const AtomicString& value) { |
| 334 m_connectionInfo = value; |
| 335 } |
| 336 |
| 325 unsigned short remotePort() const { return m_remotePort; } | 337 unsigned short remotePort() const { return m_remotePort; } |
| 326 void setRemotePort(unsigned short value) { m_remotePort = value; } | 338 void setRemotePort(unsigned short value) { m_remotePort = value; } |
| 327 | 339 |
| 328 long long encodedDataLength() const { return m_encodedDataLength; } | 340 long long encodedDataLength() const { return m_encodedDataLength; } |
| 329 void addToEncodedDataLength(long long value); | 341 void addToEncodedDataLength(long long value); |
| 330 | 342 |
| 331 long long encodedBodyLength() const { return m_encodedBodyLength; } | 343 long long encodedBodyLength() const { return m_encodedBodyLength; } |
| 332 void addToEncodedBodyLength(long long value); | 344 void addToEncodedBodyLength(long long value); |
| 333 | 345 |
| 334 long long decodedBodyLength() const { return m_decodedBodyLength; } | 346 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. | 470 // to be set if the response was fetched by a ServiceWorker. |
| 459 Vector<String> m_corsExposedHeaderNames; | 471 Vector<String> m_corsExposedHeaderNames; |
| 460 | 472 |
| 461 // The time at which the response headers were received. For cached | 473 // The time at which the response headers were received. For cached |
| 462 // responses, this time could be "far" in the past. | 474 // responses, this time could be "far" in the past. |
| 463 int64_t m_responseTime; | 475 int64_t m_responseTime; |
| 464 | 476 |
| 465 // Remote IP address of the socket which fetched this resource. | 477 // Remote IP address of the socket which fetched this resource. |
| 466 AtomicString m_remoteIPAddress; | 478 AtomicString m_remoteIPAddress; |
| 467 | 479 |
| 480 // ALPN negotiated protocol of the socket which fetched this resource. |
| 481 AtomicString m_alpnNegotiatedProtocol; |
| 482 |
| 483 // Information about the type of connection used to fetch this resource. |
| 484 AtomicString m_connectionInfo; |
| 485 |
| 468 // Remote port number of the socket which fetched this resource. | 486 // Remote port number of the socket which fetched this resource. |
| 469 unsigned short m_remotePort; | 487 unsigned short m_remotePort; |
| 470 | 488 |
| 471 // Size of the response in bytes prior to decompression. | 489 // Size of the response in bytes prior to decompression. |
| 472 long long m_encodedDataLength; | 490 long long m_encodedDataLength; |
| 473 | 491 |
| 474 // Size of the response body in bytes prior to decompression. | 492 // Size of the response body in bytes prior to decompression. |
| 475 long long m_encodedBodyLength; | 493 long long m_encodedBodyLength; |
| 476 | 494 |
| 477 // Sizes of the response body in bytes after any content-encoding is | 495 // 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; | 549 bool m_wasAlternateProtocolAvailable; |
| 532 bool m_wasFetchedViaProxy; | 550 bool m_wasFetchedViaProxy; |
| 533 bool m_wasFetchedViaServiceWorker; | 551 bool m_wasFetchedViaServiceWorker; |
| 534 bool m_wasFetchedViaForeignFetch; | 552 bool m_wasFetchedViaForeignFetch; |
| 535 bool m_wasFallbackRequiredByServiceWorker; | 553 bool m_wasFallbackRequiredByServiceWorker; |
| 536 WebServiceWorkerResponseType m_serviceWorkerResponseType; | 554 WebServiceWorkerResponseType m_serviceWorkerResponseType; |
| 537 KURL m_originalURLViaServiceWorker; | 555 KURL m_originalURLViaServiceWorker; |
| 538 String m_cacheStorageCacheName; | 556 String m_cacheStorageCacheName; |
| 539 int64_t m_responseTime; | 557 int64_t m_responseTime; |
| 540 String m_remoteIPAddress; | 558 String m_remoteIPAddress; |
| 559 String m_alpnNegotiatedProtocol; |
| 560 String m_connectionInfo; |
| 541 unsigned short m_remotePort; | 561 unsigned short m_remotePort; |
| 542 long long m_encodedDataLength; | 562 long long m_encodedDataLength; |
| 543 long long m_encodedBodyLength; | 563 long long m_encodedBodyLength; |
| 544 long long m_decodedBodyLength; | 564 long long m_decodedBodyLength; |
| 545 String m_downloadedFilePath; | 565 String m_downloadedFilePath; |
| 546 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 566 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
| 547 }; | 567 }; |
| 548 | 568 |
| 549 } // namespace blink | 569 } // namespace blink |
| 550 | 570 |
| 551 #endif // ResourceResponse_h | 571 #endif // ResourceResponse_h |
| OLD | NEW |