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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.h

Issue 1569623002: Fix-up some code relating to SRI double-requesting scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: More fixes Created 4 years, 11 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 | « third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp ('k') | no next file » | 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 #ifndef PreloadRequest_h 5 #ifndef PreloadRequest_h
6 #define PreloadRequest_h 6 #define PreloadRequest_h
7 7
8 #include "core/fetch/ClientHintsPreferences.h" 8 #include "core/fetch/ClientHintsPreferences.h"
9 #include "core/fetch/FetchRequest.h" 9 #include "core/fetch/FetchRequest.h"
10 #include "core/fetch/IntegrityMetadata.h" 10 #include "core/fetch/IntegrityMetadata.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const String& resourceURL() const { return m_resourceURL; } 49 const String& resourceURL() const { return m_resourceURL; }
50 float resourceWidth() const { return m_resourceWidth.isSet ? m_resourceWidth .width : 0; } 50 float resourceWidth() const { return m_resourceWidth.isSet ? m_resourceWidth .width : 0; }
51 const KURL& baseURL() const { return m_baseURL; } 51 const KURL& baseURL() const { return m_baseURL; }
52 bool isPreconnect() const { return m_requestType == RequestTypePreconnect; } 52 bool isPreconnect() const { return m_requestType == RequestTypePreconnect; }
53 const ClientHintsPreferences& preferences() const { return m_clientHintsPref erences; } 53 const ClientHintsPreferences& preferences() const { return m_clientHintsPref erences; }
54 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } 54 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; }
55 void setIntegrityMetadata(const IntegrityMetadataSet& metadataSet) 55 void setIntegrityMetadata(const IntegrityMetadataSet& metadataSet)
56 { 56 {
57 m_integrityMetadata = metadataSet; 57 m_integrityMetadata = metadataSet;
58 } 58 }
59 IntegrityMetadataSet integrityMetadata() const 59 const IntegrityMetadataSet& integrityMetadata() const
60 { 60 {
61 return m_integrityMetadata; 61 return m_integrityMetadata;
62 } 62 }
63 63
64 private: 64 private:
65 PreloadRequest(const String& initiatorName, 65 PreloadRequest(const String& initiatorName,
66 const TextPosition& initiatorPosition, 66 const TextPosition& initiatorPosition,
67 const String& resourceURL, 67 const String& resourceURL,
68 const KURL& baseURL, 68 const KURL& baseURL,
69 Resource::Type resourceType, 69 Resource::Type resourceType,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 RequestType m_requestType; 102 RequestType m_requestType;
103 ReferrerPolicy m_referrerPolicy; 103 ReferrerPolicy m_referrerPolicy;
104 IntegrityMetadataSet m_integrityMetadata; 104 IntegrityMetadataSet m_integrityMetadata;
105 }; 105 };
106 106
107 typedef Vector<OwnPtr<PreloadRequest>> PreloadRequestStream; 107 typedef Vector<OwnPtr<PreloadRequest>> PreloadRequestStream;
108 108
109 } 109 }
110 110
111 #endif 111 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698