| 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 30 matching lines...) Expand all Loading... |
| 41 , m_connectionReused(false) | 41 , m_connectionReused(false) |
| 42 , m_isNull(true) | 42 , m_isNull(true) |
| 43 , m_haveParsedAgeHeader(false) | 43 , m_haveParsedAgeHeader(false) |
| 44 , m_haveParsedDateHeader(false) | 44 , m_haveParsedDateHeader(false) |
| 45 , m_haveParsedExpiresHeader(false) | 45 , m_haveParsedExpiresHeader(false) |
| 46 , m_haveParsedLastModifiedHeader(false) | 46 , m_haveParsedLastModifiedHeader(false) |
| 47 , m_age(0.0) | 47 , m_age(0.0) |
| 48 , m_date(0.0) | 48 , m_date(0.0) |
| 49 , m_expires(0.0) | 49 , m_expires(0.0) |
| 50 , m_lastModified(0.0) | 50 , m_lastModified(0.0) |
| 51 , m_hasCertificateErrors(false) |
| 51 , m_securityStyle(SecurityStyleUnknown) | 52 , m_securityStyle(SecurityStyleUnknown) |
| 52 , m_httpVersion(HTTPVersionUnknown) | 53 , m_httpVersion(HTTPVersionUnknown) |
| 53 , m_appCacheID(0) | 54 , m_appCacheID(0) |
| 54 , m_isMultipartPayload(false) | 55 , m_isMultipartPayload(false) |
| 55 , m_wasFetchedViaSPDY(false) | 56 , m_wasFetchedViaSPDY(false) |
| 56 , m_wasNpnNegotiated(false) | 57 , m_wasNpnNegotiated(false) |
| 57 , m_wasAlternateProtocolAvailable(false) | 58 , m_wasAlternateProtocolAvailable(false) |
| 58 , m_wasFetchedViaProxy(false) | 59 , m_wasFetchedViaProxy(false) |
| 59 , m_wasFetchedViaServiceWorker(false) | 60 , m_wasFetchedViaServiceWorker(false) |
| 60 , m_wasFallbackRequiredByServiceWorker(false) | 61 , m_wasFallbackRequiredByServiceWorker(false) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 77 , m_connectionReused(false) | 78 , m_connectionReused(false) |
| 78 , m_isNull(false) | 79 , m_isNull(false) |
| 79 , m_haveParsedAgeHeader(false) | 80 , m_haveParsedAgeHeader(false) |
| 80 , m_haveParsedDateHeader(false) | 81 , m_haveParsedDateHeader(false) |
| 81 , m_haveParsedExpiresHeader(false) | 82 , m_haveParsedExpiresHeader(false) |
| 82 , m_haveParsedLastModifiedHeader(false) | 83 , m_haveParsedLastModifiedHeader(false) |
| 83 , m_age(0.0) | 84 , m_age(0.0) |
| 84 , m_date(0.0) | 85 , m_date(0.0) |
| 85 , m_expires(0.0) | 86 , m_expires(0.0) |
| 86 , m_lastModified(0.0) | 87 , m_lastModified(0.0) |
| 88 , m_hasCertificateErrors(false) |
| 87 , m_securityStyle(SecurityStyleUnknown) | 89 , m_securityStyle(SecurityStyleUnknown) |
| 88 , m_httpVersion(HTTPVersionUnknown) | 90 , m_httpVersion(HTTPVersionUnknown) |
| 89 , m_appCacheID(0) | 91 , m_appCacheID(0) |
| 90 , m_isMultipartPayload(false) | 92 , m_isMultipartPayload(false) |
| 91 , m_wasFetchedViaSPDY(false) | 93 , m_wasFetchedViaSPDY(false) |
| 92 , m_wasNpnNegotiated(false) | 94 , m_wasNpnNegotiated(false) |
| 93 , m_wasAlternateProtocolAvailable(false) | 95 , m_wasAlternateProtocolAvailable(false) |
| 94 , m_wasFetchedViaProxy(false) | 96 , m_wasFetchedViaProxy(false) |
| 95 , m_wasFetchedViaServiceWorker(false) | 97 , m_wasFetchedViaServiceWorker(false) |
| 96 , m_wasFallbackRequiredByServiceWorker(false) | 98 , m_wasFallbackRequiredByServiceWorker(false) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 109 response->setTextEncodingName(AtomicString(data->m_textEncodingName)); | 111 response->setTextEncodingName(AtomicString(data->m_textEncodingName)); |
| 110 response->setSuggestedFilename(data->m_suggestedFilename); | 112 response->setSuggestedFilename(data->m_suggestedFilename); |
| 111 | 113 |
| 112 response->setHTTPStatusCode(data->m_httpStatusCode); | 114 response->setHTTPStatusCode(data->m_httpStatusCode); |
| 113 response->setHTTPStatusText(AtomicString(data->m_httpStatusText)); | 115 response->setHTTPStatusText(AtomicString(data->m_httpStatusText)); |
| 114 | 116 |
| 115 response->m_httpHeaderFields.adopt(data->m_httpHeaders.release()); | 117 response->m_httpHeaderFields.adopt(data->m_httpHeaders.release()); |
| 116 response->setLastModifiedDate(data->m_lastModifiedDate); | 118 response->setLastModifiedDate(data->m_lastModifiedDate); |
| 117 response->setResourceLoadTiming(data->m_resourceLoadTiming.release()); | 119 response->setResourceLoadTiming(data->m_resourceLoadTiming.release()); |
| 118 response->m_securityInfo = data->m_securityInfo; | 120 response->m_securityInfo = data->m_securityInfo; |
| 121 response->m_hasCertificateErrors = data->m_hasCertificateErrors; |
| 119 response->m_securityStyle = data->m_securityStyle; | 122 response->m_securityStyle = data->m_securityStyle; |
| 120 response->m_securityDetails.protocol = data->m_securityDetails.protocol; | 123 response->m_securityDetails.protocol = data->m_securityDetails.protocol; |
| 121 response->m_securityDetails.cipher = data->m_securityDetails.cipher; | 124 response->m_securityDetails.cipher = data->m_securityDetails.cipher; |
| 122 response->m_securityDetails.keyExchange = data->m_securityDetails.keyExchang
e; | 125 response->m_securityDetails.keyExchange = data->m_securityDetails.keyExchang
e; |
| 123 response->m_securityDetails.mac = data->m_securityDetails.mac; | 126 response->m_securityDetails.mac = data->m_securityDetails.mac; |
| 124 response->m_securityDetails.certID = data->m_securityDetails.certID; | 127 response->m_securityDetails.certID = data->m_securityDetails.certID; |
| 125 response->m_httpVersion = data->m_httpVersion; | 128 response->m_httpVersion = data->m_httpVersion; |
| 126 response->m_appCacheID = data->m_appCacheID; | 129 response->m_appCacheID = data->m_appCacheID; |
| 127 response->m_appCacheManifestURL = data->m_appCacheManifestURL.copy(); | 130 response->m_appCacheManifestURL = data->m_appCacheManifestURL.copy(); |
| 128 response->m_isMultipartPayload = data->m_isMultipartPayload; | 131 response->m_isMultipartPayload = data->m_isMultipartPayload; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 154 data->m_expectedContentLength = expectedContentLength(); | 157 data->m_expectedContentLength = expectedContentLength(); |
| 155 data->m_textEncodingName = textEncodingName().string().isolatedCopy(); | 158 data->m_textEncodingName = textEncodingName().string().isolatedCopy(); |
| 156 data->m_suggestedFilename = suggestedFilename().isolatedCopy(); | 159 data->m_suggestedFilename = suggestedFilename().isolatedCopy(); |
| 157 data->m_httpStatusCode = httpStatusCode(); | 160 data->m_httpStatusCode = httpStatusCode(); |
| 158 data->m_httpStatusText = httpStatusText().string().isolatedCopy(); | 161 data->m_httpStatusText = httpStatusText().string().isolatedCopy(); |
| 159 data->m_httpHeaders = httpHeaderFields().copyData(); | 162 data->m_httpHeaders = httpHeaderFields().copyData(); |
| 160 data->m_lastModifiedDate = lastModifiedDate(); | 163 data->m_lastModifiedDate = lastModifiedDate(); |
| 161 if (m_resourceLoadTiming) | 164 if (m_resourceLoadTiming) |
| 162 data->m_resourceLoadTiming = m_resourceLoadTiming->deepCopy(); | 165 data->m_resourceLoadTiming = m_resourceLoadTiming->deepCopy(); |
| 163 data->m_securityInfo = CString(m_securityInfo.data(), m_securityInfo.length(
)); | 166 data->m_securityInfo = CString(m_securityInfo.data(), m_securityInfo.length(
)); |
| 167 data->m_hasCertificateErrors = m_hasCertificateErrors; |
| 164 data->m_securityStyle = m_securityStyle; | 168 data->m_securityStyle = m_securityStyle; |
| 165 data->m_securityDetails.protocol = m_securityDetails.protocol.isolatedCopy()
; | 169 data->m_securityDetails.protocol = m_securityDetails.protocol.isolatedCopy()
; |
| 166 data->m_securityDetails.cipher = m_securityDetails.cipher.isolatedCopy(); | 170 data->m_securityDetails.cipher = m_securityDetails.cipher.isolatedCopy(); |
| 167 data->m_securityDetails.keyExchange = m_securityDetails.keyExchange.isolated
Copy(); | 171 data->m_securityDetails.keyExchange = m_securityDetails.keyExchange.isolated
Copy(); |
| 168 data->m_securityDetails.mac = m_securityDetails.mac.isolatedCopy(); | 172 data->m_securityDetails.mac = m_securityDetails.mac.isolatedCopy(); |
| 169 data->m_securityDetails.certID = m_securityDetails.certID; | 173 data->m_securityDetails.certID = m_securityDetails.certID; |
| 170 data->m_httpVersion = m_httpVersion; | 174 data->m_httpVersion = m_httpVersion; |
| 171 data->m_appCacheID = m_appCacheID; | 175 data->m_appCacheID = m_appCacheID; |
| 172 data->m_appCacheManifestURL = m_appCacheManifestURL.copy(); | 176 data->m_appCacheManifestURL = m_appCacheManifestURL.copy(); |
| 173 data->m_isMultipartPayload = m_isMultipartPayload; | 177 data->m_isMultipartPayload = m_isMultipartPayload; |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 if (a.httpHeaderFields() != b.httpHeaderFields()) | 568 if (a.httpHeaderFields() != b.httpHeaderFields()) |
| 565 return false; | 569 return false; |
| 566 if (a.resourceLoadTiming() && b.resourceLoadTiming() && *a.resourceLoadTimin
g() == *b.resourceLoadTiming()) | 570 if (a.resourceLoadTiming() && b.resourceLoadTiming() && *a.resourceLoadTimin
g() == *b.resourceLoadTiming()) |
| 567 return true; | 571 return true; |
| 568 if (a.resourceLoadTiming() != b.resourceLoadTiming()) | 572 if (a.resourceLoadTiming() != b.resourceLoadTiming()) |
| 569 return false; | 573 return false; |
| 570 return true; | 574 return true; |
| 571 } | 575 } |
| 572 | 576 |
| 573 } | 577 } |
| OLD | NEW |