OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2008 Google, Inc. | 3 * Copyright (C) 2012 Google, Inc. |
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 |
11 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
12 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
13 * | 13 * |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 const File* downloadedFile() const { return m_downloadedFile.get(); } | 116 const File* downloadedFile() const { return m_downloadedFile.get(); } |
117 void setDownloadedFile(PassRefPtr<File> downloadedFile) { m_downloadedFi
le = downloadedFile; } | 117 void setDownloadedFile(PassRefPtr<File> downloadedFile) { m_downloadedFi
le = downloadedFile; } |
118 | 118 |
119 // Extra data associated with this response. | 119 // Extra data associated with this response. |
120 ExtraData* extraData() const { return m_extraData.get(); } | 120 ExtraData* extraData() const { return m_extraData.get(); } |
121 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extra
Data; } | 121 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extra
Data; } |
122 | 122 |
123 private: | 123 private: |
124 friend class ResourceResponseBase; | 124 friend class ResourceResponseBase; |
125 | 125 |
126 // An opaque value that contains some information regarding the security
of | |
127 // the connection for this request, such as SSL connection info (empty | |
128 // string if not over HTTPS). | |
129 CString m_securityInfo; | |
130 | |
131 void doUpdateResourceResponse() | 126 void doUpdateResourceResponse() |
132 { | 127 { |
133 notImplemented(); | 128 notImplemented(); |
134 } | 129 } |
135 | 130 |
136 PassOwnPtr<CrossThreadResourceResponseData> doPlatformCopyData(PassOwnPt
r<CrossThreadResourceResponseData>) const; | 131 PassOwnPtr<CrossThreadResourceResponseData> doPlatformCopyData(PassOwnPt
r<CrossThreadResourceResponseData>) const; |
137 void doPlatformAdopt(PassOwnPtr<CrossThreadResourceResponseData>); | 132 void doPlatformAdopt(PassOwnPtr<CrossThreadResourceResponseData>); |
138 | 133 |
| 134 // An opaque value that contains some information regarding the security
of |
| 135 // the connection for this request, such as SSL connection info (empty |
| 136 // string if not over HTTPS). |
| 137 CString m_securityInfo; |
| 138 |
139 // HTTP version used in the response, if known. | 139 // HTTP version used in the response, if known. |
140 HTTPVersion m_httpVersion; | 140 HTTPVersion m_httpVersion; |
141 | 141 |
142 // The id of the appcache this response was retrieved from, or zero if | 142 // The id of the appcache this response was retrieved from, or zero if |
143 // the response was not retrieved from an appcache. | 143 // the response was not retrieved from an appcache. |
144 long long m_appCacheID; | 144 long long m_appCacheID; |
145 | 145 |
146 // The manifest url of the appcache this response was retrieved from, if
any. | 146 // The manifest url of the appcache this response was retrieved from, if
any. |
147 // Note: only valid for main resource responses. | 147 // Note: only valid for main resource responses. |
148 KURL m_appCacheManifestURL; | 148 KURL m_appCacheManifestURL; |
(...skipping 25 matching lines...) Expand all Loading... |
174 unsigned short m_remotePort; | 174 unsigned short m_remotePort; |
175 | 175 |
176 // The downloaded file if the load streamed to a file. | 176 // The downloaded file if the load streamed to a file. |
177 RefPtr<File> m_downloadedFile; | 177 RefPtr<File> m_downloadedFile; |
178 | 178 |
179 // ExtraData associated with the response. | 179 // ExtraData associated with the response. |
180 RefPtr<ExtraData> m_extraData; | 180 RefPtr<ExtraData> m_extraData; |
181 }; | 181 }; |
182 | 182 |
183 struct CrossThreadResourceResponseData : public CrossThreadResourceResponseD
ataBase { | 183 struct CrossThreadResourceResponseData : public CrossThreadResourceResponseD
ataBase { |
| 184 CString m_securityInfo; |
| 185 ResourceResponse::HTTPVersion m_httpVersion; |
184 long long m_appCacheID; | 186 long long m_appCacheID; |
185 KURL m_appCacheManifestURL; | 187 KURL m_appCacheManifestURL; |
186 bool m_isMultipartPayload; | 188 bool m_isMultipartPayload; |
187 bool m_wasFetchedViaSPDY; | 189 bool m_wasFetchedViaSPDY; |
188 bool m_wasNpnNegotiated; | 190 bool m_wasNpnNegotiated; |
189 bool m_wasAlternateProtocolAvailable; | 191 bool m_wasAlternateProtocolAvailable; |
190 bool m_wasFetchedViaProxy; | 192 bool m_wasFetchedViaProxy; |
191 double m_responseTime; | 193 double m_responseTime; |
192 String m_remoteIPAddress; | 194 String m_remoteIPAddress; |
193 unsigned short m_remotePort; | 195 unsigned short m_remotePort; |
194 String m_downloadFilePath; | 196 String m_downloadFilePath; |
195 }; | 197 }; |
196 | 198 |
197 } // namespace WebCore | 199 } // namespace WebCore |
198 | 200 |
199 #endif | 201 #endif |
OLD | NEW |