| 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 <memory> |
| 9 #include "core/CoreExport.h" |
| 8 #include "platform/CrossOriginAttributeValue.h" | 10 #include "platform/CrossOriginAttributeValue.h" |
| 9 #include "platform/loader/fetch/ClientHintsPreferences.h" | 11 #include "platform/loader/fetch/ClientHintsPreferences.h" |
| 10 #include "platform/loader/fetch/FetchRequest.h" | 12 #include "platform/loader/fetch/FetchRequest.h" |
| 11 #include "platform/loader/fetch/IntegrityMetadata.h" | 13 #include "platform/loader/fetch/IntegrityMetadata.h" |
| 12 #include "platform/loader/fetch/Resource.h" | 14 #include "platform/loader/fetch/Resource.h" |
| 13 #include "platform/weborigin/SecurityPolicy.h" | 15 #include "platform/weborigin/SecurityPolicy.h" |
| 14 #include "wtf/Allocator.h" | 16 #include "wtf/Allocator.h" |
| 15 #include "wtf/PtrUtil.h" | 17 #include "wtf/PtrUtil.h" |
| 16 #include "wtf/text/TextPosition.h" | 18 #include "wtf/text/TextPosition.h" |
| 17 #include <memory> | |
| 18 | 19 |
| 19 namespace blink { | 20 namespace blink { |
| 20 | 21 |
| 21 class Document; | 22 class Document; |
| 22 | 23 |
| 23 class PreloadRequest { | 24 class CORE_EXPORT PreloadRequest { |
| 24 USING_FAST_MALLOC(PreloadRequest); | 25 USING_FAST_MALLOC(PreloadRequest); |
| 25 | 26 |
| 26 public: | 27 public: |
| 27 enum RequestType { | 28 enum RequestType { |
| 28 RequestTypePreload, | 29 RequestTypePreload, |
| 29 RequestTypePreconnect, | 30 RequestTypePreconnect, |
| 30 RequestTypeLinkRelPreload | 31 RequestTypeLinkRelPreload |
| 31 }; | 32 }; |
| 32 | 33 |
| 33 // TODO(csharrison): Move the implementation to the cpp file when core/html | 34 // TODO(csharrison): Move the implementation to the cpp file when core/html |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 RequestType m_requestType; | 135 RequestType m_requestType; |
| 135 ReferrerPolicy m_referrerPolicy; | 136 ReferrerPolicy m_referrerPolicy; |
| 136 IntegrityMetadataSet m_integrityMetadata; | 137 IntegrityMetadataSet m_integrityMetadata; |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 typedef Vector<std::unique_ptr<PreloadRequest>> PreloadRequestStream; | 140 typedef Vector<std::unique_ptr<PreloadRequest>> PreloadRequestStream; |
| 140 | 141 |
| 141 } // namespace blink | 142 } // namespace blink |
| 142 | 143 |
| 143 #endif | 144 #endif |
| OLD | NEW |