| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 207 |
| 208 bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequir
edByServiceWorker; } | 208 bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequir
edByServiceWorker; } |
| 209 void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequir
edByServiceWorker = value; } | 209 void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequir
edByServiceWorker = value; } |
| 210 | 210 |
| 211 WebServiceWorkerResponseType serviceWorkerResponseType() const { return m_se
rviceWorkerResponseType; } | 211 WebServiceWorkerResponseType serviceWorkerResponseType() const { return m_se
rviceWorkerResponseType; } |
| 212 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se
rviceWorkerResponseType = value; } | 212 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se
rviceWorkerResponseType = value; } |
| 213 | 213 |
| 214 const KURL& originalURLViaServiceWorker() const { return m_originalURLViaSer
viceWorker; } | 214 const KURL& originalURLViaServiceWorker() const { return m_originalURLViaSer
viceWorker; } |
| 215 void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServi
ceWorker = url; } | 215 void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServi
ceWorker = url; } |
| 216 | 216 |
| 217 bool isMultipartPayload() const { return m_isMultipartPayload; } | 217 const Vector<char>& multipartBoundary() const { return m_multipartBoundary;
} |
| 218 void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; } | 218 void setMultipartBoundary(const char* bytes, size_t size) |
| 219 { |
| 220 m_multipartBoundary.clear(); |
| 221 m_multipartBoundary.append(bytes, size); |
| 222 } |
| 219 | 223 |
| 220 int64_t responseTime() const { return m_responseTime; } | 224 int64_t responseTime() const { return m_responseTime; } |
| 221 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime;
} | 225 void setResponseTime(int64_t responseTime) { m_responseTime = responseTime;
} |
| 222 | 226 |
| 223 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } | 227 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } |
| 224 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val
ue; } | 228 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val
ue; } |
| 225 | 229 |
| 226 unsigned short remotePort() const { return m_remotePort; } | 230 unsigned short remotePort() const { return m_remotePort; } |
| 227 void setRemotePort(unsigned short value) { m_remotePort = value; } | 231 void setRemotePort(unsigned short value) { m_remotePort = value; } |
| 228 | 232 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 HTTPVersion m_httpVersion; | 302 HTTPVersion m_httpVersion; |
| 299 | 303 |
| 300 // The id of the appcache this response was retrieved from, or zero if | 304 // The id of the appcache this response was retrieved from, or zero if |
| 301 // the response was not retrieved from an appcache. | 305 // the response was not retrieved from an appcache. |
| 302 long long m_appCacheID; | 306 long long m_appCacheID; |
| 303 | 307 |
| 304 // The manifest url of the appcache this response was retrieved from, if any
. | 308 // The manifest url of the appcache this response was retrieved from, if any
. |
| 305 // Note: only valid for main resource responses. | 309 // Note: only valid for main resource responses. |
| 306 KURL m_appCacheManifestURL; | 310 KURL m_appCacheManifestURL; |
| 307 | 311 |
| 308 // Set to true if this is part of a multipart response. | 312 // The multipart boundary of this response. |
| 309 bool m_isMultipartPayload; | 313 Vector<char> m_multipartBoundary; |
| 310 | 314 |
| 311 // Was the resource fetched over SPDY. See http://dev.chromium.org/spdy | 315 // Was the resource fetched over SPDY. See http://dev.chromium.org/spdy |
| 312 bool m_wasFetchedViaSPDY; | 316 bool m_wasFetchedViaSPDY; |
| 313 | 317 |
| 314 // Was the resource fetched over a channel which used TLS/Next-Protocol-Nego
tiation (also SPDY related). | 318 // Was the resource fetched over a channel which used TLS/Next-Protocol-Nego
tiation (also SPDY related). |
| 315 bool m_wasNpnNegotiated; | 319 bool m_wasNpnNegotiated; |
| 316 | 320 |
| 317 // Was the resource fetched over a channel which specified "Alternate-Protoc
ol" | 321 // Was the resource fetched over a channel which specified "Alternate-Protoc
ol" |
| 318 // (e.g.: Alternate-Protocol: 443:npn-spdy/1). | 322 // (e.g.: Alternate-Protocol: 443:npn-spdy/1). |
| 319 bool m_wasAlternateProtocolAvailable; | 323 bool m_wasAlternateProtocolAvailable; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; | 376 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; |
| 373 time_t m_lastModifiedDate; | 377 time_t m_lastModifiedDate; |
| 374 RefPtr<ResourceLoadTiming> m_resourceLoadTiming; | 378 RefPtr<ResourceLoadTiming> m_resourceLoadTiming; |
| 375 CString m_securityInfo; | 379 CString m_securityInfo; |
| 376 bool m_hasMajorCertificateErrors; | 380 bool m_hasMajorCertificateErrors; |
| 377 ResourceResponse::SecurityStyle m_securityStyle; | 381 ResourceResponse::SecurityStyle m_securityStyle; |
| 378 ResourceResponse::SecurityDetails m_securityDetails; | 382 ResourceResponse::SecurityDetails m_securityDetails; |
| 379 ResourceResponse::HTTPVersion m_httpVersion; | 383 ResourceResponse::HTTPVersion m_httpVersion; |
| 380 long long m_appCacheID; | 384 long long m_appCacheID; |
| 381 KURL m_appCacheManifestURL; | 385 KURL m_appCacheManifestURL; |
| 382 bool m_isMultipartPayload; | 386 Vector<char> m_multipartBoundary; |
| 383 bool m_wasFetchedViaSPDY; | 387 bool m_wasFetchedViaSPDY; |
| 384 bool m_wasNpnNegotiated; | 388 bool m_wasNpnNegotiated; |
| 385 bool m_wasAlternateProtocolAvailable; | 389 bool m_wasAlternateProtocolAvailable; |
| 386 bool m_wasFetchedViaProxy; | 390 bool m_wasFetchedViaProxy; |
| 387 bool m_wasFetchedViaServiceWorker; | 391 bool m_wasFetchedViaServiceWorker; |
| 388 bool m_wasFallbackRequiredByServiceWorker; | 392 bool m_wasFallbackRequiredByServiceWorker; |
| 389 WebServiceWorkerResponseType m_serviceWorkerResponseType; | 393 WebServiceWorkerResponseType m_serviceWorkerResponseType; |
| 390 KURL m_originalURLViaServiceWorker; | 394 KURL m_originalURLViaServiceWorker; |
| 391 int64_t m_responseTime; | 395 int64_t m_responseTime; |
| 392 String m_remoteIPAddress; | 396 String m_remoteIPAddress; |
| 393 unsigned short m_remotePort; | 397 unsigned short m_remotePort; |
| 394 String m_downloadedFilePath; | 398 String m_downloadedFilePath; |
| 395 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 399 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
| 396 }; | 400 }; |
| 397 | 401 |
| 398 } // namespace blink | 402 } // namespace blink |
| 399 | 403 |
| 400 #endif // ResourceResponse_h | 404 #endif // ResourceResponse_h |
| OLD | NEW |