| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2012 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 m_redirectStatus = data->m_redirectStatus; | 91 m_redirectStatus = data->m_redirectStatus; |
| 92 } | 92 } |
| 93 | 93 |
| 94 ResourceRequest::ResourceRequest(const ResourceRequest&) = default; | 94 ResourceRequest::ResourceRequest(const ResourceRequest&) = default; |
| 95 | 95 |
| 96 ResourceRequest& ResourceRequest::operator=(const ResourceRequest&) = default; | 96 ResourceRequest& ResourceRequest::operator=(const ResourceRequest&) = default; |
| 97 | 97 |
| 98 std::unique_ptr<CrossThreadResourceRequestData> ResourceRequest::copyData() | 98 std::unique_ptr<CrossThreadResourceRequestData> ResourceRequest::copyData() |
| 99 const { | 99 const { |
| 100 std::unique_ptr<CrossThreadResourceRequestData> data = | 100 std::unique_ptr<CrossThreadResourceRequestData> data = |
| 101 makeUnique<CrossThreadResourceRequestData>(); | 101 WTF::makeUnique<CrossThreadResourceRequestData>(); |
| 102 data->m_url = url().copy(); | 102 data->m_url = url().copy(); |
| 103 data->m_cachePolicy = getCachePolicy(); | 103 data->m_cachePolicy = getCachePolicy(); |
| 104 data->m_timeoutInterval = timeoutInterval(); | 104 data->m_timeoutInterval = timeoutInterval(); |
| 105 data->m_firstPartyForCookies = firstPartyForCookies().copy(); | 105 data->m_firstPartyForCookies = firstPartyForCookies().copy(); |
| 106 data->m_requestorOrigin = | 106 data->m_requestorOrigin = |
| 107 requestorOrigin() ? requestorOrigin()->isolatedCopy() : nullptr; | 107 requestorOrigin() ? requestorOrigin()->isolatedCopy() : nullptr; |
| 108 data->m_httpMethod = httpMethod().getString().isolatedCopy(); | 108 data->m_httpMethod = httpMethod().getString().isolatedCopy(); |
| 109 data->m_httpHeaders = httpHeaderFields().copyData(); | 109 data->m_httpHeaders = httpHeaderFields().copyData(); |
| 110 data->m_priority = priority(); | 110 data->m_priority = priority(); |
| 111 data->m_intraPriorityValue = m_intraPriorityValue; | 111 data->m_intraPriorityValue = m_intraPriorityValue; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 // layer. | 423 // layer. |
| 424 if (httpMethod() == HTTPNames::GET || httpMethod() == HTTPNames::HEAD) | 424 if (httpMethod() == HTTPNames::GET || httpMethod() == HTTPNames::HEAD) |
| 425 return false; | 425 return false; |
| 426 | 426 |
| 427 // For non-GET and non-HEAD methods, always send an Origin header so the | 427 // For non-GET and non-HEAD methods, always send an Origin header so the |
| 428 // server knows we support this feature. | 428 // server knows we support this feature. |
| 429 return true; | 429 return true; |
| 430 } | 430 } |
| 431 | 431 |
| 432 } // namespace blink | 432 } // namespace blink |
| OLD | NEW |