Index: Source/core/html/parser/HTMLResourcePreloader.h |
diff --git a/Source/core/html/parser/HTMLResourcePreloader.h b/Source/core/html/parser/HTMLResourcePreloader.h |
index c07b58703e759291f305c8528f9b98082a9808f6..316decf81c47f5b1cc0360d034dce7528fc3ba3d 100644 |
--- a/Source/core/html/parser/HTMLResourcePreloader.h |
+++ b/Source/core/html/parser/HTMLResourcePreloader.h |
@@ -37,9 +37,9 @@ class Document; |
class PreloadRequest { |
public: |
- static PassOwnPtr<PreloadRequest> create(const String& initiatorName, const TextPosition& initiatorPosition, const String& resourceURL, const KURL& baseURL, Resource::Type resourceType) |
+ static PassOwnPtr<PreloadRequest> create(const String& initiatorName, const TextPosition& initiatorPosition, const String& resourceURL, const KURL& baseURL, Resource::Type resourceType, const FetchRequest::ResourceWidth& resourceWidth = FetchRequest::ResourceWidth()) |
{ |
- return adoptPtr(new PreloadRequest(initiatorName, initiatorPosition, resourceURL, baseURL, resourceType)); |
+ return adoptPtr(new PreloadRequest(initiatorName, initiatorPosition, resourceURL, baseURL, resourceType, resourceWidth)); |
} |
bool isSafeToSendToAnotherThread() const; |
@@ -59,7 +59,7 @@ public: |
Resource::Type resourceType() const { return m_resourceType; } |
private: |
- PreloadRequest(const String& initiatorName, const TextPosition& initiatorPosition, const String& resourceURL, const KURL& baseURL, Resource::Type resourceType) |
+ PreloadRequest(const String& initiatorName, const TextPosition& initiatorPosition, const String& resourceURL, const KURL& baseURL, Resource::Type resourceType, const FetchRequest::ResourceWidth& resourceWidth) |
: m_initiatorName(initiatorName) |
, m_initiatorPosition(initiatorPosition) |
, m_resourceURL(resourceURL.isolatedCopy()) |
@@ -69,6 +69,7 @@ private: |
, m_allowCredentials(DoNotAllowStoredCredentials) |
, m_discoveryTime(monotonicallyIncreasingTime()) |
, m_defer(FetchRequest::NoDefer) |
+ , m_resourceWidth(resourceWidth) |
{ |
} |
@@ -84,6 +85,7 @@ private: |
StoredCredentials m_allowCredentials; |
double m_discoveryTime; |
FetchRequest::DeferOption m_defer; |
+ FetchRequest::ResourceWidth m_resourceWidth; |
}; |
typedef Vector<OwnPtr<PreloadRequest>> PreloadRequestStream; |