| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); | 274 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); |
| 275 | 275 |
| 276 // Remote IP address of the socket which fetched this resource. | 276 // Remote IP address of the socket which fetched this resource. |
| 277 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const; | 277 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const; |
| 278 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&); | 278 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&); |
| 279 | 279 |
| 280 // Remote port number of the socket which fetched this resource. | 280 // Remote port number of the socket which fetched this resource. |
| 281 BLINK_PLATFORM_EXPORT unsigned short remotePort() const; | 281 BLINK_PLATFORM_EXPORT unsigned short remotePort() const; |
| 282 BLINK_PLATFORM_EXPORT void setRemotePort(unsigned short); | 282 BLINK_PLATFORM_EXPORT void setRemotePort(unsigned short); |
| 283 | 283 |
| 284 // Original size of the response body before decompression. |
| 285 BLINK_PLATFORM_EXPORT long long encodedBodyLength() const; |
| 286 BLINK_PLATFORM_EXPORT void addToEncodedBodyLength(long long); |
| 287 |
| 288 // Size of the response body after removing any content encoding. |
| 289 BLINK_PLATFORM_EXPORT long long decodedBodyLength() const; |
| 290 BLINK_PLATFORM_EXPORT void addToDecodedBodyLength(long long); |
| 291 |
| 284 // Extra data associated with the underlying resource response. Resource | 292 // Extra data associated with the underlying resource response. Resource |
| 285 // responses can be copied. If non-null, each copy of a resource response | 293 // responses can be copied. If non-null, each copy of a resource response |
| 286 // holds a pointer to the extra data, and the extra data pointer will be | 294 // holds a pointer to the extra data, and the extra data pointer will be |
| 287 // deleted when the last resource response is destroyed. Setting the extra | 295 // deleted when the last resource response is destroyed. Setting the extra |
| 288 // data pointer will cause the underlying resource response to be | 296 // data pointer will cause the underlying resource response to be |
| 289 // dissociated from any existing non-null extra data pointer. | 297 // dissociated from any existing non-null extra data pointer. |
| 290 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const; | 298 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const; |
| 291 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 299 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
| 292 | 300 |
| 293 #if INSIDE_BLINK | 301 #if INSIDE_BLINK |
| (...skipping 11 matching lines...) Expand all Loading... |
| 305 // instance it contains. | 313 // instance it contains. |
| 306 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse; | 314 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse; |
| 307 | 315 |
| 308 // Should never be null. | 316 // Should never be null. |
| 309 ResourceResponse* m_resourceResponse; | 317 ResourceResponse* m_resourceResponse; |
| 310 }; | 318 }; |
| 311 | 319 |
| 312 } // namespace blink | 320 } // namespace blink |
| 313 | 321 |
| 314 #endif | 322 #endif |
| OLD | NEW |