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

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

Issue 1287783003: Make ClientHintsPreferences class work like a class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
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 28 matching lines...) Expand all
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 }
OLDNEW
« no previous file with comments | « Source/core/html/parser/HTMLPreloadScanner.cpp ('k') | Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698