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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp

Issue 2390833002: reflow comments in platform/{animation,blob,clipboard,exported} (Closed)
Patch Set: Created 4 years, 2 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/Source/platform/exported/WebScrollbarImpl.cpp ('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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 WebURLResponse::WebURLResponse(const WebURLResponse& r) 88 WebURLResponse::WebURLResponse(const WebURLResponse& r)
89 : m_ownedResourceResponse( 89 : m_ownedResourceResponse(
90 new ResourceResponseContainer(*r.m_resourceResponse)), 90 new ResourceResponseContainer(*r.m_resourceResponse)),
91 m_resourceResponse(&m_ownedResourceResponse->resourceResponse) {} 91 m_resourceResponse(&m_ownedResourceResponse->resourceResponse) {}
92 92
93 WebURLResponse::WebURLResponse(const WebURL& url) : WebURLResponse() { 93 WebURLResponse::WebURLResponse(const WebURL& url) : WebURLResponse() {
94 setURL(url); 94 setURL(url);
95 } 95 }
96 96
97 WebURLResponse& WebURLResponse::operator=(const WebURLResponse& r) { 97 WebURLResponse& WebURLResponse::operator=(const WebURLResponse& r) {
98 // Copying subclasses that have different m_resourceResponse ownership semanti cs 98 // Copying subclasses that have different m_resourceResponse ownership
99 // via this operator is just not supported. 99 // semantics via this operator is just not supported.
100 DCHECK(m_ownedResourceResponse); 100 DCHECK(m_ownedResourceResponse);
101 DCHECK(m_resourceResponse); 101 DCHECK(m_resourceResponse);
102 if (&r != this) 102 if (&r != this)
103 *m_resourceResponse = *r.m_resourceResponse; 103 *m_resourceResponse = *r.m_resourceResponse;
104 return *this; 104 return *this;
105 } 105 }
106 106
107 bool WebURLResponse::isNull() const { 107 bool WebURLResponse::isNull() const {
108 return m_resourceResponse->isNull(); 108 return m_resourceResponse->isNull();
109 } 109 }
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); 448 return static_cast<ExtraDataContainer*>(data.get())->getExtraData();
449 } 449 }
450 450
451 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) { 451 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) {
452 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); 452 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData));
453 } 453 }
454 454
455 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} 455 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {}
456 456
457 } // namespace blink 457 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebScrollbarImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698