| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/html/parser/PreloadRequest.h" | 6 #include "core/html/parser/PreloadRequest.h" |
| 7 | 7 |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/fetch/FetchInitiatorInfo.h" | 9 #include "core/fetch/FetchInitiatorInfo.h" |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 request.setCrossOriginAccessControl(securityOrigin, | 39 request.setCrossOriginAccessControl(securityOrigin, |
| 40 sameOrigin ? AllowStoredCredentials : DoNotAllowStoredCredentials, | 40 sameOrigin ? AllowStoredCredentials : DoNotAllowStoredCredentials, |
| 41 ClientDidNotRequestCredentials); | 41 ClientDidNotRequestCredentials); |
| 42 } | 42 } |
| 43 | 43 |
| 44 if (m_isCORSEnabled) | 44 if (m_isCORSEnabled) |
| 45 request.setCrossOriginAccessControl(document->securityOrigin(), m_allowC
redentials); | 45 request.setCrossOriginAccessControl(document->securityOrigin(), m_allowC
redentials); |
| 46 | 46 |
| 47 request.setDefer(m_defer); | 47 request.setDefer(m_defer); |
| 48 request.setResourceWidth(m_resourceWidth); | 48 request.setResourceWidth(m_resourceWidth); |
| 49 request.setClientHintsPreferences(m_clientHintsPreferences); | 49 request.clientHintsPreferences().updateFrom(m_clientHintsPreferences); |
| 50 | 50 |
| 51 return request; | 51 return request; |
| 52 } | 52 } |
| 53 | 53 |
| 54 } | 54 } |
| OLD | NEW |