| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 BLINK_PLATFORM_EXPORT WebString RemoteIPAddress() const; | 265 BLINK_PLATFORM_EXPORT WebString RemoteIPAddress() const; |
| 266 BLINK_PLATFORM_EXPORT void SetRemoteIPAddress(const WebString&); | 266 BLINK_PLATFORM_EXPORT void SetRemoteIPAddress(const WebString&); |
| 267 | 267 |
| 268 // Remote port number of the socket which fetched this resource. | 268 // Remote port number of the socket which fetched this resource. |
| 269 BLINK_PLATFORM_EXPORT unsigned short RemotePort() const; | 269 BLINK_PLATFORM_EXPORT unsigned short RemotePort() const; |
| 270 BLINK_PLATFORM_EXPORT void SetRemotePort(unsigned short); | 270 BLINK_PLATFORM_EXPORT void SetRemotePort(unsigned short); |
| 271 | 271 |
| 272 // Original size of the response before decompression. | 272 // Original size of the response before decompression. |
| 273 BLINK_PLATFORM_EXPORT void SetEncodedDataLength(long long); | 273 BLINK_PLATFORM_EXPORT void SetEncodedDataLength(long long); |
| 274 | 274 |
| 275 // Original size of the response body before decompression. | |
| 276 BLINK_PLATFORM_EXPORT void AddToEncodedBodyLength(long long); | |
| 277 | |
| 278 // Size of the response body after removing any content encoding. | |
| 279 BLINK_PLATFORM_EXPORT void AddToDecodedBodyLength(long long); | |
| 280 | |
| 281 // Extra data associated with the underlying resource response. Resource | 275 // Extra data associated with the underlying resource response. Resource |
| 282 // responses can be copied. If non-null, each copy of a resource response | 276 // responses can be copied. If non-null, each copy of a resource response |
| 283 // holds a pointer to the extra data, and the extra data pointer will be | 277 // holds a pointer to the extra data, and the extra data pointer will be |
| 284 // deleted when the last resource response is destroyed. Setting the extra | 278 // deleted when the last resource response is destroyed. Setting the extra |
| 285 // data pointer will cause the underlying resource response to be | 279 // data pointer will cause the underlying resource response to be |
| 286 // dissociated from any existing non-null extra data pointer. | 280 // dissociated from any existing non-null extra data pointer. |
| 287 BLINK_PLATFORM_EXPORT ExtraData* GetExtraData() const; | 281 BLINK_PLATFORM_EXPORT ExtraData* GetExtraData() const; |
| 288 BLINK_PLATFORM_EXPORT void SetExtraData(ExtraData*); | 282 BLINK_PLATFORM_EXPORT void SetExtraData(ExtraData*); |
| 289 | 283 |
| 290 BLINK_PLATFORM_EXPORT void AppendRedirectResponse(const WebURLResponse&); | 284 BLINK_PLATFORM_EXPORT void AppendRedirectResponse(const WebURLResponse&); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 304 // instance it contains. | 298 // instance it contains. |
| 305 std::unique_ptr<ResourceResponseContainer> owned_resource_response_; | 299 std::unique_ptr<ResourceResponseContainer> owned_resource_response_; |
| 306 | 300 |
| 307 // Should never be null. | 301 // Should never be null. |
| 308 ResourceResponse* resource_response_; | 302 ResourceResponse* resource_response_; |
| 309 }; | 303 }; |
| 310 | 304 |
| 311 } // namespace blink | 305 } // namespace blink |
| 312 | 306 |
| 313 #endif | 307 #endif |
| OLD | NEW |