Chromium Code Reviews| 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 13 matching lines...) Expand all Loading... | |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebURLResponse_h | 31 #ifndef WebURLResponse_h |
| 32 #define WebURLResponse_h | 32 #define WebURLResponse_h |
| 33 | 33 |
| 34 #include <memory> | |
|
panicker
2017/06/08 23:39:09
add net/http to the list here: https://cs.chromium
shaseley
2017/06/09 00:27:51
Done.
| |
| 35 #include "net/http/http_response_info.h" | |
| 34 #include "public/platform/WebCString.h" | 36 #include "public/platform/WebCString.h" |
| 35 #include "public/platform/WebCommon.h" | 37 #include "public/platform/WebCommon.h" |
| 36 #include "public/platform/WebSecurityStyle.h" | 38 #include "public/platform/WebSecurityStyle.h" |
| 37 #include "public/platform/WebString.h" | 39 #include "public/platform/WebString.h" |
| 38 #include "public/platform/WebVector.h" | 40 #include "public/platform/WebVector.h" |
| 39 #include "public/platform/modules/serviceworker/WebServiceWorkerResponseType.h" | 41 #include "public/platform/modules/serviceworker/WebServiceWorkerResponseType.h" |
| 40 #include <memory> | |
| 41 | 42 |
| 42 namespace blink { | 43 namespace blink { |
| 43 | 44 |
| 44 class ResourceResponse; | 45 class ResourceResponse; |
| 45 class WebHTTPHeaderVisitor; | 46 class WebHTTPHeaderVisitor; |
| 46 class WebHTTPLoadInfo; | 47 class WebHTTPLoadInfo; |
| 47 class WebURL; | 48 class WebURL; |
| 48 class WebURLLoadTiming; | 49 class WebURLLoadTiming; |
| 49 | 50 |
| 50 class WebURLResponse { | 51 class WebURLResponse { |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 262 BLINK_PLATFORM_EXPORT void SetDownloadFilePath(const WebString&); | 263 BLINK_PLATFORM_EXPORT void SetDownloadFilePath(const WebString&); |
| 263 | 264 |
| 264 // Remote IP address of the socket which fetched this resource. | 265 // Remote IP address of the socket which fetched this resource. |
| 265 BLINK_PLATFORM_EXPORT WebString RemoteIPAddress() const; | 266 BLINK_PLATFORM_EXPORT WebString RemoteIPAddress() const; |
| 266 BLINK_PLATFORM_EXPORT void SetRemoteIPAddress(const WebString&); | 267 BLINK_PLATFORM_EXPORT void SetRemoteIPAddress(const WebString&); |
| 267 | 268 |
| 268 // Remote port number of the socket which fetched this resource. | 269 // Remote port number of the socket which fetched this resource. |
| 269 BLINK_PLATFORM_EXPORT unsigned short RemotePort() const; | 270 BLINK_PLATFORM_EXPORT unsigned short RemotePort() const; |
| 270 BLINK_PLATFORM_EXPORT void SetRemotePort(unsigned short); | 271 BLINK_PLATFORM_EXPORT void SetRemotePort(unsigned short); |
| 271 | 272 |
| 273 // ALPN negotiated protocol of the socket which fetched this resource. | |
| 274 BLINK_PLATFORM_EXPORT WebString AlpnNegotiatedProtocol() const; | |
| 275 BLINK_PLATFORM_EXPORT void SetAlpnNegotiatedProtocol(const WebString&); | |
| 276 | |
| 277 // Information about the type of connection used to fetch this resource. | |
| 278 BLINK_PLATFORM_EXPORT net::HttpResponseInfo::ConnectionInfo ConnectionInfo() | |
| 279 const; | |
| 280 BLINK_PLATFORM_EXPORT void SetConnectionInfo( | |
| 281 net::HttpResponseInfo::ConnectionInfo); | |
| 282 | |
| 272 // Original size of the response before decompression. | 283 // Original size of the response before decompression. |
| 273 BLINK_PLATFORM_EXPORT void SetEncodedDataLength(long long); | 284 BLINK_PLATFORM_EXPORT void SetEncodedDataLength(long long); |
| 274 | 285 |
| 275 // Extra data associated with the underlying resource response. Resource | 286 // Extra data associated with the underlying resource response. Resource |
| 276 // responses can be copied. If non-null, each copy of a resource response | 287 // responses can be copied. If non-null, each copy of a resource response |
| 277 // holds a pointer to the extra data, and the extra data pointer will be | 288 // holds a pointer to the extra data, and the extra data pointer will be |
| 278 // deleted when the last resource response is destroyed. Setting the extra | 289 // deleted when the last resource response is destroyed. Setting the extra |
| 279 // data pointer will cause the underlying resource response to be | 290 // data pointer will cause the underlying resource response to be |
| 280 // dissociated from any existing non-null extra data pointer. | 291 // dissociated from any existing non-null extra data pointer. |
| 281 BLINK_PLATFORM_EXPORT ExtraData* GetExtraData() const; | 292 BLINK_PLATFORM_EXPORT ExtraData* GetExtraData() const; |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 298 // instance it contains. | 309 // instance it contains. |
| 299 std::unique_ptr<ResourceResponseContainer> owned_resource_response_; | 310 std::unique_ptr<ResourceResponseContainer> owned_resource_response_; |
| 300 | 311 |
| 301 // Should never be null. | 312 // Should never be null. |
| 302 ResourceResponse* resource_response_; | 313 ResourceResponse* resource_response_; |
| 303 }; | 314 }; |
| 304 | 315 |
| 305 } // namespace blink | 316 } // namespace blink |
| 306 | 317 |
| 307 #endif | 318 #endif |
| OLD | NEW |