Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: Source/core/html/parser/PreloadRequest.cpp

Issue 1121263002: Add Accept-CH meta http-equiv support to the preloader. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review nits Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/parser/PreloadRequest.h ('k') | Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 18 matching lines...) Expand all
29 FetchInitiatorInfo initiatorInfo; 29 FetchInitiatorInfo initiatorInfo;
30 initiatorInfo.name = AtomicString(m_initiatorName); 30 initiatorInfo.name = AtomicString(m_initiatorName);
31 initiatorInfo.position = m_initiatorPosition; 31 initiatorInfo.position = m_initiatorPosition;
32 FetchRequest request(ResourceRequest(completeURL(document)), initiatorInfo); 32 FetchRequest request(ResourceRequest(completeURL(document)), initiatorInfo);
33 33
34 if (m_isCORSEnabled) 34 if (m_isCORSEnabled)
35 request.setCrossOriginAccessControl(document->securityOrigin(), m_allowC redentials); 35 request.setCrossOriginAccessControl(document->securityOrigin(), m_allowC redentials);
36 36
37 request.setDefer(m_defer); 37 request.setDefer(m_defer);
38 request.setResourceWidth(m_resourceWidth); 38 request.setResourceWidth(m_resourceWidth);
39 request.setClientHintsPreferences(m_clientHintsPreferences);
39 40
40 return request; 41 return request;
41 } 42 }
42 43
43 } 44 }
OLDNEW
« no previous file with comments | « Source/core/html/parser/PreloadRequest.h ('k') | Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698