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

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

Issue 2140523002: Remove WebURLRequest::initialize() and simplify WebURLRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mutable ref 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
« no previous file with comments | « third_party/WebKit/public/platform/WebURLRequest.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // holds a pointer to the extra data, and the extra data pointer will be 287 // holds a pointer to the extra data, and the extra data pointer will be
288 // deleted when the last resource response is destroyed. Setting the extra 288 // deleted when the last resource response is destroyed. Setting the extra
289 // data pointer will cause the underlying resource response to be 289 // data pointer will cause the underlying resource response to be
290 // dissociated from any existing non-null extra data pointer. 290 // dissociated from any existing non-null extra data pointer.
291 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const; 291 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const;
292 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); 292 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*);
293 293
294 #if INSIDE_BLINK 294 #if INSIDE_BLINK
295 protected: 295 protected:
296 // Permit subclasses to set arbitrary ResourceResponse pointer as 296 // Permit subclasses to set arbitrary ResourceResponse pointer as
297 // |m_resourceResponse|. Parameter must be non-null. 297 // |m_resourceResponse|. |m_ownedResourceResponse| is not set in this case.
298 // |m_ownedResourceResponse| is not set in this case. 298 BLINK_PLATFORM_EXPORT explicit WebURLResponse(ResourceResponse&);
299 BLINK_PLATFORM_EXPORT explicit WebURLResponse(ResourceResponse*);
300 #endif 299 #endif
301 300
302 private: 301 private:
303 struct ResourceResponseContainer; 302 struct ResourceResponseContainer;
304 303
305 // If this instance owns a ResourceResponse then |m_ownedResourceResponse| 304 // If this instance owns a ResourceResponse then |m_ownedResourceResponse|
306 // is non-null and |m_resourceResponse| points to the ResourceResponse 305 // is non-null and |m_resourceResponse| points to the ResourceResponse
307 // instance it contains. 306 // instance it contains.
308 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse; 307 std::unique_ptr<ResourceResponseContainer> m_ownedResourceResponse;
309 308
310 // Should never be null. 309 // Should never be null.
311 ResourceResponse* m_resourceResponse; 310 ResourceResponse* m_resourceResponse;
312 }; 311 };
313 312
314 } // namespace blink 313 } // namespace blink
315 314
316 #endif 315 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebURLRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698