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

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

Issue 2628773002: Replaced RefPtr::release with std::move in Source/platform. (Closed)
Patch Set: Created 3 years, 11 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 m_resourceResponse->setConnectionReused(connectionReused); 132 m_resourceResponse->setConnectionReused(connectionReused);
133 } 133 }
134 134
135 WebURLLoadTiming WebURLResponse::loadTiming() { 135 WebURLLoadTiming WebURLResponse::loadTiming() {
136 return WebURLLoadTiming(m_resourceResponse->resourceLoadTiming()); 136 return WebURLLoadTiming(m_resourceResponse->resourceLoadTiming());
137 } 137 }
138 138
139 void WebURLResponse::setLoadTiming(const WebURLLoadTiming& timing) { 139 void WebURLResponse::setLoadTiming(const WebURLLoadTiming& timing) {
140 RefPtr<ResourceLoadTiming> loadTiming = 140 RefPtr<ResourceLoadTiming> loadTiming =
141 PassRefPtr<ResourceLoadTiming>(timing); 141 PassRefPtr<ResourceLoadTiming>(timing);
142 m_resourceResponse->setResourceLoadTiming(loadTiming.release()); 142 m_resourceResponse->setResourceLoadTiming(std::move(loadTiming));
143 } 143 }
144 144
145 WebHTTPLoadInfo WebURLResponse::httpLoadInfo() { 145 WebHTTPLoadInfo WebURLResponse::httpLoadInfo() {
146 return WebHTTPLoadInfo(m_resourceResponse->resourceLoadInfo()); 146 return WebHTTPLoadInfo(m_resourceResponse->resourceLoadInfo());
147 } 147 }
148 148
149 void WebURLResponse::setHTTPLoadInfo(const WebHTTPLoadInfo& value) { 149 void WebURLResponse::setHTTPLoadInfo(const WebHTTPLoadInfo& value) {
150 m_resourceResponse->setResourceLoadInfo(value); 150 m_resourceResponse->setResourceLoadInfo(value);
151 } 151 }
152 152
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); 465 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData));
466 } 466 }
467 467
468 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { 468 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) {
469 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); 469 m_resourceResponse->appendRedirectResponse(response.toResourceResponse());
470 } 470 }
471 471
472 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} 472 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {}
473 473
474 } // namespace blink 474 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/blob/BlobData.cpp ('k') | third_party/WebKit/Source/platform/fonts/FontFamily.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698