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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 { | 155 { |
156 m_wasAlternateProtocolAvailable = value; | 156 m_wasAlternateProtocolAvailable = value; |
157 } | 157 } |
158 | 158 |
159 bool wasFetchedViaProxy() const { return m_wasFetchedViaProxy; } | 159 bool wasFetchedViaProxy() const { return m_wasFetchedViaProxy; } |
160 void setWasFetchedViaProxy(bool value) { m_wasFetchedViaProxy = value; } | 160 void setWasFetchedViaProxy(bool value) { m_wasFetchedViaProxy = value; } |
161 | 161 |
162 bool wasFetchedViaServiceWorker() const { return m_wasFetchedViaServiceWorke
r; } | 162 bool wasFetchedViaServiceWorker() const { return m_wasFetchedViaServiceWorke
r; } |
163 void setWasFetchedViaServiceWorker(bool value) { m_wasFetchedViaServiceWorke
r = value; } | 163 void setWasFetchedViaServiceWorker(bool value) { m_wasFetchedViaServiceWorke
r = value; } |
164 | 164 |
| 165 bool wasFallbackRequiredByServiceWorker() const { return m_wasFallbackRequir
edByServiceWorker; } |
| 166 void setWasFallbackRequiredByServiceWorker(bool value) { m_wasFallbackRequir
edByServiceWorker = value; } |
| 167 |
165 bool isMultipartPayload() const { return m_isMultipartPayload; } | 168 bool isMultipartPayload() const { return m_isMultipartPayload; } |
166 void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; } | 169 void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; } |
167 | 170 |
168 double responseTime() const { return m_responseTime; } | 171 double responseTime() const { return m_responseTime; } |
169 void setResponseTime(double responseTime) { m_responseTime = responseTime; } | 172 void setResponseTime(double responseTime) { m_responseTime = responseTime; } |
170 | 173 |
171 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } | 174 const AtomicString& remoteIPAddress() const { return m_remoteIPAddress; } |
172 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val
ue; } | 175 void setRemoteIPAddress(const AtomicString& value) { m_remoteIPAddress = val
ue; } |
173 | 176 |
174 unsigned short remotePort() const { return m_remotePort; } | 177 unsigned short remotePort() const { return m_remotePort; } |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // Was the resource fetched over a channel which specified "Alternate-Protoc
ol" | 254 // Was the resource fetched over a channel which specified "Alternate-Protoc
ol" |
252 // (e.g.: Alternate-Protocol: 443:npn-spdy/1). | 255 // (e.g.: Alternate-Protocol: 443:npn-spdy/1). |
253 bool m_wasAlternateProtocolAvailable; | 256 bool m_wasAlternateProtocolAvailable; |
254 | 257 |
255 // Was the resource fetched over an explicit proxy (HTTP, SOCKS, etc). | 258 // Was the resource fetched over an explicit proxy (HTTP, SOCKS, etc). |
256 bool m_wasFetchedViaProxy; | 259 bool m_wasFetchedViaProxy; |
257 | 260 |
258 // Was the resource fetched over a ServiceWorker. | 261 // Was the resource fetched over a ServiceWorker. |
259 bool m_wasFetchedViaServiceWorker; | 262 bool m_wasFetchedViaServiceWorker; |
260 | 263 |
| 264 // Was the fallback request with skip service worker flag required. |
| 265 bool m_wasFallbackRequiredByServiceWorker; |
| 266 |
261 // The time at which the response headers were received. For cached | 267 // The time at which the response headers were received. For cached |
262 // responses, this time could be "far" in the past. | 268 // responses, this time could be "far" in the past. |
263 double m_responseTime; | 269 double m_responseTime; |
264 | 270 |
265 // Remote IP address of the socket which fetched this resource. | 271 // Remote IP address of the socket which fetched this resource. |
266 AtomicString m_remoteIPAddress; | 272 AtomicString m_remoteIPAddress; |
267 | 273 |
268 // Remote port number of the socket which fetched this resource. | 274 // Remote port number of the socket which fetched this resource. |
269 unsigned short m_remotePort; | 275 unsigned short m_remotePort; |
270 | 276 |
(...skipping 28 matching lines...) Expand all Loading... |
299 CString m_securityInfo; | 305 CString m_securityInfo; |
300 ResourceResponse::HTTPVersion m_httpVersion; | 306 ResourceResponse::HTTPVersion m_httpVersion; |
301 long long m_appCacheID; | 307 long long m_appCacheID; |
302 KURL m_appCacheManifestURL; | 308 KURL m_appCacheManifestURL; |
303 bool m_isMultipartPayload; | 309 bool m_isMultipartPayload; |
304 bool m_wasFetchedViaSPDY; | 310 bool m_wasFetchedViaSPDY; |
305 bool m_wasNpnNegotiated; | 311 bool m_wasNpnNegotiated; |
306 bool m_wasAlternateProtocolAvailable; | 312 bool m_wasAlternateProtocolAvailable; |
307 bool m_wasFetchedViaProxy; | 313 bool m_wasFetchedViaProxy; |
308 bool m_wasFetchedViaServiceWorker; | 314 bool m_wasFetchedViaServiceWorker; |
| 315 bool m_wasFallbackRequiredByServiceWorker; |
309 double m_responseTime; | 316 double m_responseTime; |
310 String m_remoteIPAddress; | 317 String m_remoteIPAddress; |
311 unsigned short m_remotePort; | 318 unsigned short m_remotePort; |
312 String m_downloadedFilePath; | 319 String m_downloadedFilePath; |
313 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 320 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
314 }; | 321 }; |
315 | 322 |
316 } // namespace blink | 323 } // namespace blink |
317 | 324 |
318 #endif // ResourceResponse_h | 325 #endif // ResourceResponse_h |
OLD | NEW |