OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 WebString signatureData; | 92 WebString signatureData; |
93 }; | 93 }; |
94 | 94 |
95 using SignedCertificateTimestampList = WebVector<SignedCertificateTimestamp>
; | 95 using SignedCertificateTimestampList = WebVector<SignedCertificateTimestamp>
; |
96 | 96 |
97 struct WebSecurityDetails { | 97 struct WebSecurityDetails { |
98 WebSecurityDetails(const WebString& protocol, | 98 WebSecurityDetails(const WebString& protocol, |
99 const WebString& keyExchange, | 99 const WebString& keyExchange, |
100 const WebString& cipher, | 100 const WebString& cipher, |
101 const WebString& mac, | 101 const WebString& mac, |
102 int certId, | 102 const WebString& subjectName, |
| 103 const WebVector<WebString>& sanList, |
| 104 const WebString& issuer, |
| 105 double validFrom, |
| 106 double validTo, |
| 107 WebVector<WebString>& certificate, |
103 const SignedCertificateTimestampList& sctList) | 108 const SignedCertificateTimestampList& sctList) |
104 : protocol(protocol) | 109 : protocol(protocol) |
105 , keyExchange(keyExchange) | 110 , keyExchange(keyExchange) |
106 , cipher(cipher) | 111 , cipher(cipher) |
107 , mac(mac) | 112 , mac(mac) |
108 , certId(certId) | 113 , subjectName(subjectName) |
| 114 , sanList(sanList) |
| 115 , issuer(issuer) |
| 116 , validFrom(validFrom) |
| 117 , validTo(validTo) |
| 118 , certificate(certificate) |
109 , sctList(sctList) | 119 , sctList(sctList) |
110 { | 120 { |
111 } | 121 } |
112 // All strings are human-readable values. | 122 // All strings are human-readable values. |
113 WebString protocol; | 123 WebString protocol; |
114 WebString keyExchange; | 124 WebString keyExchange; |
115 WebString cipher; | 125 WebString cipher; |
116 // mac is the empty string when the connection cipher suite does not | 126 // mac is the empty string when the connection cipher suite does not |
117 // have a separate MAC value (i.e. if the cipher suite is AEAD). | 127 // have a separate MAC value (i.e. if the cipher suite is AEAD). |
118 WebString mac; | 128 WebString mac; |
119 int certId; | 129 WebString subjectName; |
| 130 WebVector<WebString> sanList; |
| 131 WebString issuer; |
| 132 double validFrom; |
| 133 double validTo; |
| 134 // DER-encoded X509Certificate certificate chain. |
| 135 WebVector<WebString> certificate; |
120 SignedCertificateTimestampList sctList; | 136 SignedCertificateTimestampList sctList; |
121 }; | 137 }; |
122 | 138 |
123 class ExtraData { | 139 class ExtraData { |
124 public: | 140 public: |
125 virtual ~ExtraData() { } | 141 virtual ~ExtraData() { } |
126 }; | 142 }; |
127 | 143 |
128 BLINK_PLATFORM_EXPORT ~WebURLResponse(); | 144 BLINK_PLATFORM_EXPORT ~WebURLResponse(); |
129 | 145 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // instance it contains. | 324 // instance it contains. |
309 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse; | 325 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse; |
310 | 326 |
311 // Should never be null. | 327 // Should never be null. |
312 ResourceResponse* m_resourceResponse; | 328 ResourceResponse* m_resourceResponse; |
313 }; | 329 }; |
314 | 330 |
315 } // namespace blink | 331 } // namespace blink |
316 | 332 |
317 #endif | 333 #endif |
OLD | NEW |