Index: Source/platform/network/ResourceRequest.h |
diff --git a/Source/platform/network/ResourceRequest.h b/Source/platform/network/ResourceRequest.h |
index 824ab21759c72adaa25c6ab6d627f6f719723fde..bc36a4a653b94177d8f030ecccdb6844f772a9fc 100644 |
--- a/Source/platform/network/ResourceRequest.h |
+++ b/Source/platform/network/ResourceRequest.h |
@@ -64,6 +64,13 @@ public: |
virtual ~ExtraData() { } |
}; |
+ enum ContextType { |
+ ContextTypeNotMixedContent, |
+ ContextTypeBlockable, |
+ ContextTypeOptionallyBlockable, |
+ ContextTypeShouldBeBlockable, |
+ }; |
+ |
ResourceRequest() |
{ |
initialize(KURL()); |
@@ -233,6 +240,9 @@ public: |
void setFollowedRedirect(bool followed) { m_followedRedirect = followed; } |
bool followedRedirect() const { return m_followedRedirect; } |
+ void setContextType(ContextType contextType) { m_contextType = contextType; } |
+ ContextType contextType() const { return m_contextType; } |
+ |
private: |
void initialize(const KURL&); |
@@ -277,6 +287,8 @@ private: |
static double s_defaultTimeoutInterval; |
bool m_followedRedirect; |
+ |
+ ContextType m_contextType; |
}; |
bool equalIgnoringHeaderFields(const ResourceRequest&, const ResourceRequest&); |
@@ -322,6 +334,7 @@ public: |
bool m_originatesFromReservedIPRange; |
InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
bool m_followedRedirect; |
+ ResourceRequest::ContextType m_contextType; |
}; |
} // namespace blink |