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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 { | 234 { |
235 m_wasAlternateProtocolAvailable = value; | 235 m_wasAlternateProtocolAvailable = value; |
236 } | 236 } |
237 | 237 |
238 bool wasFetchedViaProxy() const { return m_wasFetchedViaProxy; } | 238 bool wasFetchedViaProxy() const { return m_wasFetchedViaProxy; } |
239 void setWasFetchedViaProxy(bool value) { m_wasFetchedViaProxy = value; } | 239 void setWasFetchedViaProxy(bool value) { m_wasFetchedViaProxy = value; } |
240 | 240 |
241 bool wasFetchedViaServiceWorker() const { return m_wasFetchedViaServiceWorke
r; } | 241 bool wasFetchedViaServiceWorker() const { return m_wasFetchedViaServiceWorke
r; } |
242 void setWasFetchedViaServiceWorker(bool value) { m_wasFetchedViaServiceWorke
r = value; } | 242 void setWasFetchedViaServiceWorker(bool value) { m_wasFetchedViaServiceWorke
r = value; } |
243 | 243 |
| 244 bool wasFetchedViaForeignFetch() const { return m_wasFetchedViaForeignFetch;
} |
| 245 void setWasFetchedViaForeignFetch(bool value) { m_wasFetchedViaForeignFetch
= value; } |
| 246 |
244 bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequir
edByServiceWorker; } | 247 bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequir
edByServiceWorker; } |
245 void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequir
edByServiceWorker = value; } | 248 void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequir
edByServiceWorker = value; } |
246 | 249 |
247 WebServiceWorkerResponseType serviceWorkerResponseType() const { return m_se
rviceWorkerResponseType; } | 250 WebServiceWorkerResponseType serviceWorkerResponseType() const { return m_se
rviceWorkerResponseType; } |
248 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se
rviceWorkerResponseType = value; } | 251 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se
rviceWorkerResponseType = value; } |
249 | 252 |
250 const KURL& originalURLViaServiceWorker() const { return m_originalURLViaSer
viceWorker; } | 253 const KURL& originalURLViaServiceWorker() const { return m_originalURLViaSer
viceWorker; } |
251 void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServi
ceWorker = url; } | 254 void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServi
ceWorker = url; } |
252 | 255 |
253 const Vector<char>& multipartBoundary() const { return m_multipartBoundary;
} | 256 const Vector<char>& multipartBoundary() const { return m_multipartBoundary;
} |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 // Was the resource fetched over a channel which specified "Alternate-Protoc
ol" | 374 // Was the resource fetched over a channel which specified "Alternate-Protoc
ol" |
372 // (e.g.: Alternate-Protocol: 443:npn-spdy/1). | 375 // (e.g.: Alternate-Protocol: 443:npn-spdy/1). |
373 bool m_wasAlternateProtocolAvailable; | 376 bool m_wasAlternateProtocolAvailable; |
374 | 377 |
375 // Was the resource fetched over an explicit proxy (HTTP, SOCKS, etc). | 378 // Was the resource fetched over an explicit proxy (HTTP, SOCKS, etc). |
376 bool m_wasFetchedViaProxy; | 379 bool m_wasFetchedViaProxy; |
377 | 380 |
378 // Was the resource fetched over a ServiceWorker. | 381 // Was the resource fetched over a ServiceWorker. |
379 bool m_wasFetchedViaServiceWorker; | 382 bool m_wasFetchedViaServiceWorker; |
380 | 383 |
| 384 // Was the resource fetched using a foreign fetch service worker. |
| 385 bool m_wasFetchedViaForeignFetch; |
| 386 |
381 // Was the fallback request with skip service worker flag required. | 387 // Was the fallback request with skip service worker flag required. |
382 bool m_wasFallbackRequiredByServiceWorker; | 388 bool m_wasFallbackRequiredByServiceWorker; |
383 | 389 |
384 // The type of the response which was fetched by the ServiceWorker. | 390 // The type of the response which was fetched by the ServiceWorker. |
385 WebServiceWorkerResponseType m_serviceWorkerResponseType; | 391 WebServiceWorkerResponseType m_serviceWorkerResponseType; |
386 | 392 |
387 // The original URL of the response which was fetched by the ServiceWorker. | 393 // The original URL of the response which was fetched by the ServiceWorker. |
388 // This may be empty if the response was created inside the ServiceWorker. | 394 // This may be empty if the response was created inside the ServiceWorker. |
389 KURL m_originalURLViaServiceWorker; | 395 KURL m_originalURLViaServiceWorker; |
390 | 396 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 ResourceResponse::SecurityDetails m_securityDetails; | 453 ResourceResponse::SecurityDetails m_securityDetails; |
448 ResourceResponse::HTTPVersion m_httpVersion; | 454 ResourceResponse::HTTPVersion m_httpVersion; |
449 long long m_appCacheID; | 455 long long m_appCacheID; |
450 KURL m_appCacheManifestURL; | 456 KURL m_appCacheManifestURL; |
451 Vector<char> m_multipartBoundary; | 457 Vector<char> m_multipartBoundary; |
452 bool m_wasFetchedViaSPDY; | 458 bool m_wasFetchedViaSPDY; |
453 bool m_wasNpnNegotiated; | 459 bool m_wasNpnNegotiated; |
454 bool m_wasAlternateProtocolAvailable; | 460 bool m_wasAlternateProtocolAvailable; |
455 bool m_wasFetchedViaProxy; | 461 bool m_wasFetchedViaProxy; |
456 bool m_wasFetchedViaServiceWorker; | 462 bool m_wasFetchedViaServiceWorker; |
| 463 bool m_wasFetchedViaForeignFetch; |
457 bool m_wasFallbackRequiredByServiceWorker; | 464 bool m_wasFallbackRequiredByServiceWorker; |
458 WebServiceWorkerResponseType m_serviceWorkerResponseType; | 465 WebServiceWorkerResponseType m_serviceWorkerResponseType; |
459 KURL m_originalURLViaServiceWorker; | 466 KURL m_originalURLViaServiceWorker; |
460 String m_cacheStorageCacheName; | 467 String m_cacheStorageCacheName; |
461 int64_t m_responseTime; | 468 int64_t m_responseTime; |
462 String m_remoteIPAddress; | 469 String m_remoteIPAddress; |
463 unsigned short m_remotePort; | 470 unsigned short m_remotePort; |
464 long long m_encodedBodyLength; | 471 long long m_encodedBodyLength; |
465 long long m_decodedBodyLength; | 472 long long m_decodedBodyLength; |
466 String m_downloadedFilePath; | 473 String m_downloadedFilePath; |
467 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 474 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
468 }; | 475 }; |
469 | 476 |
470 } // namespace blink | 477 } // namespace blink |
471 | 478 |
472 #endif // ResourceResponse_h | 479 #endif // ResourceResponse_h |
OLD | NEW |