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 #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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 { | 44 { |
45 return m_crossOrigin; | 45 return m_crossOrigin; |
46 } | 46 } |
47 Resource::Type resourceType() const { return m_resourceType; } | 47 Resource::Type resourceType() const { return m_resourceType; } |
48 | 48 |
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 getReferrerPolicy() 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 const 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: |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } // namespace blink | 109 } // namespace blink |
110 | 110 |
111 #endif | 111 #endif |
OLD | NEW |