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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 | 153 |
154 PassRefPtr<ResourceLoadInfo> resourceLoadInfo() const; | 154 PassRefPtr<ResourceLoadInfo> resourceLoadInfo() const; |
155 void setResourceLoadInfo(PassRefPtr<ResourceLoadInfo>); | 155 void setResourceLoadInfo(PassRefPtr<ResourceLoadInfo>); |
156 | 156 |
157 HTTPVersion httpVersion() const { return m_httpVersion; } | 157 HTTPVersion httpVersion() const { return m_httpVersion; } |
158 void setHTTPVersion(HTTPVersion version) { m_httpVersion = version; } | 158 void setHTTPVersion(HTTPVersion version) { m_httpVersion = version; } |
159 | 159 |
160 const CString& getSecurityInfo() const { return m_securityInfo; } | 160 const CString& getSecurityInfo() const { return m_securityInfo; } |
161 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit yInfo; } | 161 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit yInfo; } |
162 | 162 |
163 bool hasCertificateErrors() const { return m_hasCertificateErrors; } | |
164 void setHasCertificateErrors(bool value) { m_hasCertificateErrors = value; } | |
jww
2015/11/20 01:25:08
nit: rename 'value' to something more meaningful,
estark
2015/11/23 23:40:24
Done.
| |
165 | |
163 SecurityStyle securityStyle() const { return m_securityStyle; } | 166 SecurityStyle securityStyle() const { return m_securityStyle; } |
164 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; } | 167 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur ityStyle; } |
165 | 168 |
166 const SecurityDetails* securityDetails() const { return &m_securityDetails; } | 169 const SecurityDetails* securityDetails() const { return &m_securityDetails; } |
167 void setSecurityDetails(const String& protocol, const String& keyExchange, c onst String& cipher, const String& mac, int certId); | 170 void setSecurityDetails(const String& protocol, const String& keyExchange, c onst String& cipher, const String& mac, int certId); |
168 | 171 |
169 long long appCacheID() const { return m_appCacheID; } | 172 long long appCacheID() const { return m_appCacheID; } |
170 void setAppCacheID(long long id) { m_appCacheID = id; } | 173 void setAppCacheID(long long id) { m_appCacheID = id; } |
171 | 174 |
172 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; } | 175 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; } |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
261 mutable double m_age; | 264 mutable double m_age; |
262 mutable double m_date; | 265 mutable double m_date; |
263 mutable double m_expires; | 266 mutable double m_expires; |
264 mutable double m_lastModified; | 267 mutable double m_lastModified; |
265 | 268 |
266 // An opaque value that contains some information regarding the security of | 269 // An opaque value that contains some information regarding the security of |
267 // the connection for this request, such as SSL connection info (empty | 270 // the connection for this request, such as SSL connection info (empty |
268 // string if not over HTTPS). | 271 // string if not over HTTPS). |
269 CString m_securityInfo; | 272 CString m_securityInfo; |
270 | 273 |
274 // True if the resource was retrieved by the embedder in spite of | |
275 // certificate errors. | |
276 bool m_hasCertificateErrors; | |
277 | |
271 // The security style of the resource. | 278 // The security style of the resource. |
272 // This only contains a valid value when the DevTools Network domain is | 279 // This only contains a valid value when the DevTools Network domain is |
273 // enabled. (Otherwise, it contains a default value of Unknown.) | 280 // enabled. (Otherwise, it contains a default value of Unknown.) |
274 SecurityStyle m_securityStyle; | 281 SecurityStyle m_securityStyle; |
275 | 282 |
276 // Security details of this request's connection. | 283 // Security details of this request's connection. |
277 // If m_securityStyle is Unknown or Unauthenticated, this does not contain | 284 // If m_securityStyle is Unknown or Unauthenticated, this does not contain |
278 // valid data. | 285 // valid data. |
279 SecurityDetails m_securityDetails; | 286 SecurityDetails m_securityDetails; |
280 | 287 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
350 String m_mimeType; | 357 String m_mimeType; |
351 long long m_expectedContentLength; | 358 long long m_expectedContentLength; |
352 String m_textEncodingName; | 359 String m_textEncodingName; |
353 String m_suggestedFilename; | 360 String m_suggestedFilename; |
354 int m_httpStatusCode; | 361 int m_httpStatusCode; |
355 String m_httpStatusText; | 362 String m_httpStatusText; |
356 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; | 363 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; |
357 time_t m_lastModifiedDate; | 364 time_t m_lastModifiedDate; |
358 RefPtr<ResourceLoadTiming> m_resourceLoadTiming; | 365 RefPtr<ResourceLoadTiming> m_resourceLoadTiming; |
359 CString m_securityInfo; | 366 CString m_securityInfo; |
367 bool m_hasCertificateErrors; | |
360 ResourceResponse::SecurityStyle m_securityStyle; | 368 ResourceResponse::SecurityStyle m_securityStyle; |
361 ResourceResponse::SecurityDetails m_securityDetails; | 369 ResourceResponse::SecurityDetails m_securityDetails; |
362 ResourceResponse::HTTPVersion m_httpVersion; | 370 ResourceResponse::HTTPVersion m_httpVersion; |
363 long long m_appCacheID; | 371 long long m_appCacheID; |
364 KURL m_appCacheManifestURL; | 372 KURL m_appCacheManifestURL; |
365 bool m_isMultipartPayload; | 373 bool m_isMultipartPayload; |
366 bool m_wasFetchedViaSPDY; | 374 bool m_wasFetchedViaSPDY; |
367 bool m_wasNpnNegotiated; | 375 bool m_wasNpnNegotiated; |
368 bool m_wasAlternateProtocolAvailable; | 376 bool m_wasAlternateProtocolAvailable; |
369 bool m_wasFetchedViaProxy; | 377 bool m_wasFetchedViaProxy; |
370 bool m_wasFetchedViaServiceWorker; | 378 bool m_wasFetchedViaServiceWorker; |
371 bool m_wasFallbackRequiredByServiceWorker; | 379 bool m_wasFallbackRequiredByServiceWorker; |
372 WebServiceWorkerResponseType m_serviceWorkerResponseType; | 380 WebServiceWorkerResponseType m_serviceWorkerResponseType; |
373 KURL m_originalURLViaServiceWorker; | 381 KURL m_originalURLViaServiceWorker; |
374 int64 m_responseTime; | 382 int64 m_responseTime; |
375 String m_remoteIPAddress; | 383 String m_remoteIPAddress; |
376 unsigned short m_remotePort; | 384 unsigned short m_remotePort; |
377 String m_downloadedFilePath; | 385 String m_downloadedFilePath; |
378 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 386 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
379 }; | 387 }; |
380 | 388 |
381 } // namespace blink | 389 } // namespace blink |
382 | 390 |
383 #endif // ResourceResponse_h | 391 #endif // ResourceResponse_h |
OLD | NEW |