| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |