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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 77 } |
78 | 78 |
79 PassOwnPtr<CrossThreadResourceRequestData> ResourceRequest::copyData() const | 79 PassOwnPtr<CrossThreadResourceRequestData> ResourceRequest::copyData() const |
80 { | 80 { |
81 OwnPtr<CrossThreadResourceRequestData> data = adoptPtr(new CrossThreadResour
ceRequestData()); | 81 OwnPtr<CrossThreadResourceRequestData> data = adoptPtr(new CrossThreadResour
ceRequestData()); |
82 data->m_url = url().copy(); | 82 data->m_url = url().copy(); |
83 data->m_cachePolicy = getCachePolicy(); | 83 data->m_cachePolicy = getCachePolicy(); |
84 data->m_timeoutInterval = timeoutInterval(); | 84 data->m_timeoutInterval = timeoutInterval(); |
85 data->m_firstPartyForCookies = firstPartyForCookies().copy(); | 85 data->m_firstPartyForCookies = firstPartyForCookies().copy(); |
86 data->m_requestorOrigin = requestorOrigin() ? requestorOrigin()->isolatedCop
y() : nullptr; | 86 data->m_requestorOrigin = requestorOrigin() ? requestorOrigin()->isolatedCop
y() : nullptr; |
87 data->m_httpMethod = httpMethod().string().isolatedCopy(); | 87 data->m_httpMethod = httpMethod().getString().isolatedCopy(); |
88 data->m_httpHeaders = httpHeaderFields().copyData(); | 88 data->m_httpHeaders = httpHeaderFields().copyData(); |
89 data->m_priority = priority(); | 89 data->m_priority = priority(); |
90 data->m_intraPriorityValue = m_intraPriorityValue; | 90 data->m_intraPriorityValue = m_intraPriorityValue; |
91 | 91 |
92 if (m_httpBody) | 92 if (m_httpBody) |
93 data->m_httpBody = m_httpBody->deepCopy(); | 93 data->m_httpBody = m_httpBody->deepCopy(); |
94 data->m_allowStoredCredentials = m_allowStoredCredentials; | 94 data->m_allowStoredCredentials = m_allowStoredCredentials; |
95 data->m_reportUploadProgress = m_reportUploadProgress; | 95 data->m_reportUploadProgress = m_reportUploadProgress; |
96 data->m_hasUserGesture = m_hasUserGesture; | 96 data->m_hasUserGesture = m_hasUserGesture; |
97 data->m_downloadToFile = m_downloadToFile; | 97 data->m_downloadToFile = m_downloadToFile; |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 m_didSetHTTPReferrer = false; | 453 m_didSetHTTPReferrer = false; |
454 m_checkForBrowserSideNavigation = true; | 454 m_checkForBrowserSideNavigation = true; |
455 m_uiStartTime = 0; | 455 m_uiStartTime = 0; |
456 m_isExternalRequest = false; | 456 m_isExternalRequest = false; |
457 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; | 457 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; |
458 m_followedRedirect = false; | 458 m_followedRedirect = false; |
459 m_requestorOrigin = SecurityOrigin::createUnique(); | 459 m_requestorOrigin = SecurityOrigin::createUnique(); |
460 } | 460 } |
461 | 461 |
462 } // namespace blink | 462 } // namespace blink |
OLD | NEW |