| Index: third_party/WebKit/Source/core/html/parser/PreloadRequest.h
|
| diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
|
| index 9154fff2d31c5d8b9b0f90f1b10898bc017d8944..cb0932d17da7e31390656d7977793318f4c47dd5 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
|
| +++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
|
| @@ -12,9 +12,7 @@
|
| #include "platform/CrossOriginAttributeValue.h"
|
| #include "platform/weborigin/SecurityPolicy.h"
|
| #include "wtf/Allocator.h"
|
| -#include "wtf/PtrUtil.h"
|
| #include "wtf/text/TextPosition.h"
|
| -#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -25,9 +23,9 @@ class PreloadRequest {
|
| public:
|
| enum RequestType { RequestTypePreload, RequestTypePreconnect, RequestTypeLinkRelPreload };
|
|
|
| - static std::unique_ptr<PreloadRequest> create(const String& initiatorName, const TextPosition& initiatorPosition, const String& resourceURL, const KURL& baseURL, Resource::Type resourceType, const ReferrerPolicy referrerPolicy, const FetchRequest::ResourceWidth& resourceWidth = FetchRequest::ResourceWidth(), const ClientHintsPreferences& clientHintsPreferences = ClientHintsPreferences(), RequestType requestType = RequestTypePreload)
|
| + static PassOwnPtr<PreloadRequest> create(const String& initiatorName, const TextPosition& initiatorPosition, const String& resourceURL, const KURL& baseURL, Resource::Type resourceType, const ReferrerPolicy referrerPolicy, const FetchRequest::ResourceWidth& resourceWidth = FetchRequest::ResourceWidth(), const ClientHintsPreferences& clientHintsPreferences = ClientHintsPreferences(), RequestType requestType = RequestTypePreload)
|
| {
|
| - return wrapUnique(new PreloadRequest(initiatorName, initiatorPosition, resourceURL, baseURL, resourceType, resourceWidth, clientHintsPreferences, requestType, referrerPolicy));
|
| + return adoptPtr(new PreloadRequest(initiatorName, initiatorPosition, resourceURL, baseURL, resourceType, resourceWidth, clientHintsPreferences, requestType, referrerPolicy));
|
| }
|
|
|
| bool isSafeToSendToAnotherThread() const;
|
| @@ -106,7 +104,7 @@ private:
|
| IntegrityMetadataSet m_integrityMetadata;
|
| };
|
|
|
| -typedef Vector<std::unique_ptr<PreloadRequest>> PreloadRequestStream;
|
| +typedef Vector<OwnPtr<PreloadRequest>> PreloadRequestStream;
|
|
|
| } // namespace blink
|
|
|
|
|