Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: third_party/WebKit/public/platform/WebURLResponse.h

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Fixes from ksakamoto review Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); 245 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&);
246 246
247 // Remote IP address of the socket which fetched this resource. 247 // Remote IP address of the socket which fetched this resource.
248 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const; 248 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const;
249 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&); 249 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&);
250 250
251 // Remote port number of the socket which fetched this resource. 251 // Remote port number of the socket which fetched this resource.
252 BLINK_PLATFORM_EXPORT unsigned short remotePort() const; 252 BLINK_PLATFORM_EXPORT unsigned short remotePort() const;
253 BLINK_PLATFORM_EXPORT void setRemotePort(unsigned short); 253 BLINK_PLATFORM_EXPORT void setRemotePort(unsigned short);
254 254
255 // Original size of the response body before decompression.
256 BLINK_PLATFORM_EXPORT long long encodedBodyLength() const;
257 BLINK_PLATFORM_EXPORT void addToEncodedBodyLength(long long);
258
259 // Size of the response body after removing any content encoding.
260 BLINK_PLATFORM_EXPORT long long decodedBodyLength() const;
261 BLINK_PLATFORM_EXPORT void addToDecodedBodyLength(long long);
262
255 // Extra data associated with the underlying resource response. Resource 263 // Extra data associated with the underlying resource response. Resource
256 // responses can be copied. If non-null, each copy of a resource response 264 // responses can be copied. If non-null, each copy of a resource response
257 // holds a pointer to the extra data, and the extra data pointer will be 265 // holds a pointer to the extra data, and the extra data pointer will be
258 // deleted when the last resource response is destroyed. Setting the extra 266 // deleted when the last resource response is destroyed. Setting the extra
259 // data pointer will cause the underlying resource response to be 267 // data pointer will cause the underlying resource response to be
260 // dissociated from any existing non-null extra data pointer. 268 // dissociated from any existing non-null extra data pointer.
261 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const; 269 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const;
262 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); 270 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*);
263 271
264 protected: 272 protected:
265 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); 273 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*);
266 274
267 private: 275 private:
268 WebURLResponsePrivate* m_private; 276 WebURLResponsePrivate* m_private;
269 }; 277 };
270 278
271 } // namespace blink 279 } // namespace blink
272 280
273 #endif 281 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698