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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 bool wasFetchedViaServiceWorker() const { return m_wasFetchedViaServiceWorke
r; } | 163 bool wasFetchedViaServiceWorker() const { return m_wasFetchedViaServiceWorke
r; } |
164 void setWasFetchedViaServiceWorker(bool value) { m_wasFetchedViaServiceWorke
r = value; } | 164 void setWasFetchedViaServiceWorker(bool value) { m_wasFetchedViaServiceWorke
r = value; } |
165 | 165 |
166 bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequir
edByServiceWorker; } | 166 bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequir
edByServiceWorker; } |
167 void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequir
edByServiceWorker = value; } | 167 void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequir
edByServiceWorker = value; } |
168 | 168 |
169 WebServiceWorkerResponseType serviceWorkerResponseType() const { return m_se
rviceWorkerResponseType; } | 169 WebServiceWorkerResponseType serviceWorkerResponseType() const { return m_se
rviceWorkerResponseType; } |
170 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se
rviceWorkerResponseType = value; } | 170 void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_se
rviceWorkerResponseType = value; } |
171 | 171 |
| 172 const KURL& originalURLViaServiceWorker() const { return m_originalURLViaSer
viceWorker; } |
| 173 void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServi
ceWorker = url; }; |
| 174 |
172 bool isMultipartPayload() const { return m_isMultipartPayload; } | 175 bool isMultipartPayload() const { return m_isMultipartPayload; } |
173 void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; } | 176 void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; } |
174 | 177 |
175 double responseTime() const { return m_responseTime; } | 178 double responseTime() const { return m_responseTime; } |
176 void setResponseTime(double responseTime) { m_responseTime = responseTime; } | 179 void setResponseTime(double responseTime) { m_responseTime = responseTime; } |
177 | 180 |
178 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } | 181 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } |
179 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val
ue; } | 182 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val
ue; } |
180 | 183 |
181 unsigned short remotePort() const { return m_remotePort; } | 184 unsigned short remotePort() const { return m_remotePort; } |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 267 |
265 // Was the resource fetched over a ServiceWorker. | 268 // Was the resource fetched over a ServiceWorker. |
266 bool m_wasFetchedViaServiceWorker; | 269 bool m_wasFetchedViaServiceWorker; |
267 | 270 |
268 // Was the fallback request with skip service worker flag required. | 271 // Was the fallback request with skip service worker flag required. |
269 bool m_wasFallbackRequiredByServiceWorker; | 272 bool m_wasFallbackRequiredByServiceWorker; |
270 | 273 |
271 // The type of the response which was fetched by the ServiceWorker. | 274 // The type of the response which was fetched by the ServiceWorker. |
272 WebServiceWorkerResponseType m_serviceWorkerResponseType; | 275 WebServiceWorkerResponseType m_serviceWorkerResponseType; |
273 | 276 |
| 277 // The original URL of the response which was fetched by the ServiceWorker. |
| 278 // This may be empty if the response was created inside the ServiceWorker. |
| 279 KURL m_originalURLViaServiceWorker; |
| 280 |
274 // The time at which the response headers were received. For cached | 281 // The time at which the response headers were received. For cached |
275 // responses, this time could be "far" in the past. | 282 // responses, this time could be "far" in the past. |
276 double m_responseTime; | 283 double m_responseTime; |
277 | 284 |
278 // Remote IP address of the socket which fetched this resource. | 285 // Remote IP address of the socket which fetched this resource. |
279 AtomicString m_remoteIPAddress; | 286 AtomicString m_remoteIPAddress; |
280 | 287 |
281 // Remote port number of the socket which fetched this resource. | 288 // Remote port number of the socket which fetched this resource. |
282 unsigned short m_remotePort; | 289 unsigned short m_remotePort; |
283 | 290 |
(...skipping 30 matching lines...) Expand all Loading... |
314 long long m_appCacheID; | 321 long long m_appCacheID; |
315 KURL m_appCacheManifestURL; | 322 KURL m_appCacheManifestURL; |
316 bool m_isMultipartPayload; | 323 bool m_isMultipartPayload; |
317 bool m_wasFetchedViaSPDY; | 324 bool m_wasFetchedViaSPDY; |
318 bool m_wasNpnNegotiated; | 325 bool m_wasNpnNegotiated; |
319 bool m_wasAlternateProtocolAvailable; | 326 bool m_wasAlternateProtocolAvailable; |
320 bool m_wasFetchedViaProxy; | 327 bool m_wasFetchedViaProxy; |
321 bool m_wasFetchedViaServiceWorker; | 328 bool m_wasFetchedViaServiceWorker; |
322 bool m_wasFallbackRequiredByServiceWorker; | 329 bool m_wasFallbackRequiredByServiceWorker; |
323 WebServiceWorkerResponseType m_serviceWorkerResponseType; | 330 WebServiceWorkerResponseType m_serviceWorkerResponseType; |
| 331 KURL m_originalURLViaServiceWorker; |
324 double m_responseTime; | 332 double m_responseTime; |
325 String m_remoteIPAddress; | 333 String m_remoteIPAddress; |
326 unsigned short m_remotePort; | 334 unsigned short m_remotePort; |
327 String m_downloadedFilePath; | 335 String m_downloadedFilePath; |
328 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 336 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
329 }; | 337 }; |
330 | 338 |
331 } // namespace blink | 339 } // namespace blink |
332 | 340 |
333 #endif // ResourceResponse_h | 341 #endif // ResourceResponse_h |
OLD | NEW |