Chromium Code Reviews| Index: Source/platform/network/ResourceRequest.h |
| diff --git a/Source/platform/network/ResourceRequest.h b/Source/platform/network/ResourceRequest.h |
| index cb1e7c5a304ac3ff2ce127a54be4f5134dc570e2..30521bc3eb1d604cb7db1ceea82e536c2c394077 100644 |
| --- a/Source/platform/network/ResourceRequest.h |
| +++ b/Source/platform/network/ResourceRequest.h |
| @@ -99,6 +99,12 @@ public: |
| setHTTPReferrer(referrer); |
| } |
| + // Factory methods that should be used when creating a ResourceRequest for a |
| + // main resource. |
| + static ResourceRequest createMainResourceRequest(const KURL&, bool isMainFrame); |
| + static ResourceRequest createMainResourceRequest( |
| + const KURL&, bool isMainFrame, const Referrer&, ResourceRequestCachePolicy = UseProtocolCachePolicy); |
| + |
| static PassOwnPtr<ResourceRequest> adopt(PassOwnPtr<CrossThreadResourceRequestData>); |
| // Gets a copy of the data suitable for passing to another thread. |
| @@ -204,6 +210,7 @@ public: |
| // What this request is for. |
| TargetType targetType() const { return m_targetType; } |
| void setTargetType(TargetType type) { m_targetType = type; } |
| + void setTargetTypeForMainResource(bool isMainFrame); |
|
ppi
2014/06/24 12:22:21
Do we still need this in public: ?
clamy
2014/06/24 13:57:07
Done.
|
| bool cacheControlContainsNoCache() const; |
| bool cacheControlContainsNoStore() const; |