OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // whatever values may be present in the opaque m_extraData structure. | 200 // whatever values may be present in the opaque m_extraData structure. |
201 } | 201 } |
202 | 202 |
203 ResourceResponse::ResourceResponse(const ResourceResponse&) = default; | 203 ResourceResponse::ResourceResponse(const ResourceResponse&) = default; |
204 ResourceResponse& ResourceResponse::operator=(const ResourceResponse&) = | 204 ResourceResponse& ResourceResponse::operator=(const ResourceResponse&) = |
205 default; | 205 default; |
206 | 206 |
207 std::unique_ptr<CrossThreadResourceResponseData> ResourceResponse::copyData() | 207 std::unique_ptr<CrossThreadResourceResponseData> ResourceResponse::copyData() |
208 const { | 208 const { |
209 std::unique_ptr<CrossThreadResourceResponseData> data = | 209 std::unique_ptr<CrossThreadResourceResponseData> data = |
210 wrapUnique(new CrossThreadResourceResponseData); | 210 WTF::wrapUnique(new CrossThreadResourceResponseData); |
211 data->m_url = url().copy(); | 211 data->m_url = url().copy(); |
212 data->m_mimeType = mimeType().getString().isolatedCopy(); | 212 data->m_mimeType = mimeType().getString().isolatedCopy(); |
213 data->m_expectedContentLength = expectedContentLength(); | 213 data->m_expectedContentLength = expectedContentLength(); |
214 data->m_textEncodingName = textEncodingName().getString().isolatedCopy(); | 214 data->m_textEncodingName = textEncodingName().getString().isolatedCopy(); |
215 data->m_suggestedFilename = suggestedFilename().isolatedCopy(); | 215 data->m_suggestedFilename = suggestedFilename().isolatedCopy(); |
216 data->m_httpStatusCode = httpStatusCode(); | 216 data->m_httpStatusCode = httpStatusCode(); |
217 data->m_httpStatusText = httpStatusText().getString().isolatedCopy(); | 217 data->m_httpStatusText = httpStatusText().getString().isolatedCopy(); |
218 data->m_httpHeaders = httpHeaderFields().copyData(); | 218 data->m_httpHeaders = httpHeaderFields().copyData(); |
219 data->m_lastModifiedDate = lastModifiedDate(); | 219 data->m_lastModifiedDate = lastModifiedDate(); |
220 if (m_resourceLoadTiming) | 220 if (m_resourceLoadTiming) |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 if (a.resourceLoadTiming() != b.resourceLoadTiming()) | 665 if (a.resourceLoadTiming() != b.resourceLoadTiming()) |
666 return false; | 666 return false; |
667 if (a.encodedBodyLength() != b.encodedBodyLength()) | 667 if (a.encodedBodyLength() != b.encodedBodyLength()) |
668 return false; | 668 return false; |
669 if (a.decodedBodyLength() != b.decodedBodyLength()) | 669 if (a.decodedBodyLength() != b.decodedBodyLength()) |
670 return false; | 670 return false; |
671 return true; | 671 return true; |
672 } | 672 } |
673 | 673 |
674 } // namespace blink | 674 } // namespace blink |
OLD | NEW |