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

Unified Diff: public/platform/WebURLRequest.h

Issue 610403002: [ServiceWorker] Plumbing the request credentials mode to the ServiceWorker. [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated yhirano's comment Created 6 years, 3 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
Index: public/platform/WebURLRequest.h
diff --git a/public/platform/WebURLRequest.h b/public/platform/WebURLRequest.h
index abc70ce5d554d7a3fab965a95bd40e60673244ca..adfed3f0765979af92190c7295cc182619639493 100644
--- a/public/platform/WebURLRequest.h
+++ b/public/platform/WebURLRequest.h
@@ -64,7 +64,8 @@ public:
PriorityVeryHigh,
};
- // Corresponds to Fetch's "context": http://fetch.spec.whatwg.org/#concept-request-context
+ // Corresponds to Fetch's "context":
+ // http://fetch.spec.whatwg.org/#concept-request-context
Mike West 2014/10/01 08:16:34 Nit: Why change this?
horo 2014/10/01 08:32:21 Followed yhirano's comment in PS1. But we don't ne
enum RequestContext {
RequestContextUnspecified = 0,
RequestContextAudio,
@@ -102,7 +103,8 @@ public:
RequestContextXSLT
};
- // Corresponds to Fetch's "context frame type": http://fetch.spec.whatwg.org/#concept-request-context-frame-type
+ // Corresponds to Fetch's "context frame type":
+ // http://fetch.spec.whatwg.org/#concept-request-context-frame-type
Mike West 2014/10/01 08:16:34 Nit: And this?
horo 2014/10/01 08:32:21 Done.
enum FrameType {
FrameTypeAuxiliary,
FrameTypeNested,
@@ -117,6 +119,12 @@ public:
FetchRequestModeCORSWithForcedPreflight
};
+ enum FetchCredentialsMode {
+ FetchCredentialsModeOmit,
+ FetchCredentialsModeSameOrigin,
+ FetchCredentialsModeInclude
+ };
+
class ExtraData {
public:
virtual ~ExtraData() { }
@@ -226,6 +234,10 @@ public:
BLINK_PLATFORM_EXPORT FetchRequestMode fetchRequestMode() const;
BLINK_PLATFORM_EXPORT void setFetchRequestMode(FetchRequestMode);
+ // The credentials mode which will be passed to the ServiceWorker.
+ BLINK_PLATFORM_EXPORT FetchCredentialsMode fetchCredentialsMode() const;
+ BLINK_PLATFORM_EXPORT void setFetchCredentialsMode(FetchCredentialsMode);
+
// Extra data associated with the underlying resource request. Resource
// requests can be copied. If non-null, each copy of a resource requests
// holds a pointer to the extra data, and the extra data pointer will be
« Source/platform/network/ResourceRequest.h ('K') | « public/platform/WebServiceWorkerRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698