| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 String m_signatureAlgorithm; | 95 String m_signatureAlgorithm; |
| 96 String m_signatureData; | 96 String m_signatureData; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 using SignedCertificateTimestampList = WTF::Vector<SignedCertificateTimestam
p>; | 99 using SignedCertificateTimestampList = WTF::Vector<SignedCertificateTimestam
p>; |
| 100 | 100 |
| 101 struct SecurityDetails { | 101 struct SecurityDetails { |
| 102 DISALLOW_NEW(); | 102 DISALLOW_NEW(); |
| 103 SecurityDetails() | 103 SecurityDetails() |
| 104 : certID(0) | 104 : certID(0) |
| 105 , numUnknownSCTs(0) | |
| 106 , numInvalidSCTs(0) | |
| 107 , numValidSCTs(0) | |
| 108 { | 105 { |
| 109 } | 106 } |
| 110 // All strings are human-readable values. | 107 // All strings are human-readable values. |
| 111 String protocol; | 108 String protocol; |
| 112 String keyExchange; | 109 String keyExchange; |
| 113 String cipher; | 110 String cipher; |
| 114 // mac is the empty string when the connection cipher suite does not | 111 // mac is the empty string when the connection cipher suite does not |
| 115 // have a separate MAC value (i.e. if the cipher suite is AEAD). | 112 // have a separate MAC value (i.e. if the cipher suite is AEAD). |
| 116 String mac; | 113 String mac; |
| 117 int certID; | 114 int certID; |
| 118 size_t numUnknownSCTs; | |
| 119 size_t numInvalidSCTs; | |
| 120 size_t numValidSCTs; | |
| 121 SignedCertificateTimestampList sctList; | 115 SignedCertificateTimestampList sctList; |
| 122 }; | 116 }; |
| 123 | 117 |
| 124 class ExtraData : public RefCounted<ExtraData> { | 118 class ExtraData : public RefCounted<ExtraData> { |
| 125 public: | 119 public: |
| 126 virtual ~ExtraData() { } | 120 virtual ~ExtraData() { } |
| 127 }; | 121 }; |
| 128 | 122 |
| 129 explicit ResourceResponse(CrossThreadResourceResponseData*); | 123 explicit ResourceResponse(CrossThreadResourceResponseData*); |
| 130 | 124 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 const CString& getSecurityInfo() const { return m_securityInfo; } | 205 const CString& getSecurityInfo() const { return m_securityInfo; } |
| 212 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit
yInfo; } | 206 void setSecurityInfo(const CString& securityInfo) { m_securityInfo = securit
yInfo; } |
| 213 | 207 |
| 214 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors;
} | 208 bool hasMajorCertificateErrors() const { return m_hasMajorCertificateErrors;
} |
| 215 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj
orCertificateErrors = hasMajorCertificateErrors; } | 209 void setHasMajorCertificateErrors(bool hasMajorCertificateErrors) { m_hasMaj
orCertificateErrors = hasMajorCertificateErrors; } |
| 216 | 210 |
| 217 SecurityStyle getSecurityStyle() const { return m_securityStyle; } | 211 SecurityStyle getSecurityStyle() const { return m_securityStyle; } |
| 218 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur
ityStyle; } | 212 void setSecurityStyle(SecurityStyle securityStyle) { m_securityStyle = secur
ityStyle; } |
| 219 | 213 |
| 220 const SecurityDetails* getSecurityDetails() const { return &m_securityDetail
s; } | 214 const SecurityDetails* getSecurityDetails() const { return &m_securityDetail
s; } |
| 221 void setSecurityDetails(const String& protocol, const String& keyExchange, c
onst String& cipher, const String& mac, int certId, size_t numUnknownScts, size_
t numInvalidScts, size_t numValidScts, const SignedCertificateTimestampList& sct
List); | 215 void setSecurityDetails(const String& protocol, const String& keyExchange, c
onst String& cipher, const String& mac, int certId, const SignedCertificateTimes
tampList& sctList); |
| 222 | 216 |
| 223 long long appCacheID() const { return m_appCacheID; } | 217 long long appCacheID() const { return m_appCacheID; } |
| 224 void setAppCacheID(long long id) { m_appCacheID = id; } | 218 void setAppCacheID(long long id) { m_appCacheID = id; } |
| 225 | 219 |
| 226 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; } | 220 const KURL& appCacheManifestURL() const { return m_appCacheManifestURL; } |
| 227 void setAppCacheManifestURL(const KURL& url) { m_appCacheManifestURL = url;
} | 221 void setAppCacheManifestURL(const KURL& url) { m_appCacheManifestURL = url;
} |
| 228 | 222 |
| 229 bool wasFetchedViaSPDY() const { return m_wasFetchedViaSPDY; } | 223 bool wasFetchedViaSPDY() const { return m_wasFetchedViaSPDY; } |
| 230 void setWasFetchedViaSPDY(bool value) { m_wasFetchedViaSPDY = value; } | 224 void setWasFetchedViaSPDY(bool value) { m_wasFetchedViaSPDY = value; } |
| 231 | 225 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 unsigned short m_remotePort; | 463 unsigned short m_remotePort; |
| 470 long long m_encodedBodyLength; | 464 long long m_encodedBodyLength; |
| 471 long long m_decodedBodyLength; | 465 long long m_decodedBodyLength; |
| 472 String m_downloadedFilePath; | 466 String m_downloadedFilePath; |
| 473 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 467 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
| 474 }; | 468 }; |
| 475 | 469 |
| 476 } // namespace blink | 470 } // namespace blink |
| 477 | 471 |
| 478 #endif // ResourceResponse_h | 472 #endif // ResourceResponse_h |
| OLD | NEW |