Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(848)

Unified Diff: public/platform/WebURLRequest.h

Issue 389993002: Teach WebURLRequest about Fetch's "frame type" concept. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Missed one. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebURLRequest.h
diff --git a/public/platform/WebURLRequest.h b/public/platform/WebURLRequest.h
index edb43a884d9ab7454a2938b1bb3244a9e5c31fc1..e3842bcce9d0d03a45fa8db82a4364eb69e66aa2 100644
--- a/public/platform/WebURLRequest.h
+++ b/public/platform/WebURLRequest.h
@@ -88,6 +88,8 @@ public:
TargetIsUnspecified = 17,
};
+ // Corresponds to Fetch's "context": http://fetch.spec.whatwg.org/#concept-request-context
+ //
// FIXME: Drop the TargetType enum once embedders are updated upstream.
enum RequestContext {
RequestContextUnspecified = 0,
@@ -124,6 +126,14 @@ public:
RequestContextXSLT
};
+ // Corresponds to Fetch's "context frame type": http://fetch.spec.whatwg.org/#concept-request-context-frame-type
+ enum FrameType {
+ FrameTypeAuxiliary,
+ FrameTypeNested,
+ FrameTypeNone,
+ FrameTypeTopLevel
+ };
+
class ExtraData {
public:
virtual ~ExtraData() { }
@@ -197,6 +207,9 @@ public:
BLINK_PLATFORM_EXPORT RequestContext requestContext() const;
BLINK_PLATFORM_EXPORT void setRequestContext(RequestContext);
+ BLINK_PLATFORM_EXPORT FrameType frameType() const;
+ BLINK_PLATFORM_EXPORT void setFrameType(FrameType);
+
BLINK_PLATFORM_EXPORT WebReferrerPolicy referrerPolicy() const;
// Adds an HTTP origin header if it is empty and the HTTP method of the
« no previous file with comments | « Source/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698