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

Unified Diff: Source/platform/network/ResourceRequest.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: Source/platform/network/ResourceRequest.h
diff --git a/Source/platform/network/ResourceRequest.h b/Source/platform/network/ResourceRequest.h
index 591940ea55935384d8027b2ce29a6e22484cf247..3f389daea99bc3fb810f90ed90346180a90b8f27 100644
--- a/Source/platform/network/ResourceRequest.h
+++ b/Source/platform/network/ResourceRequest.h
@@ -200,6 +200,15 @@ public:
m_fetchRequestMode = mode;
}
+ blink::WebURLRequest::FetchCredentialsMode fetchCredentialsMode() const
+ {
+ return m_fetchCredentialsMode;
+ }
+ void setFetchCredentialsMode(blink::WebURLRequest::FetchCredentialsMode mode)
Mike West 2014/10/01 08:16:34 Nit: Since Blink doesn't have an 80-column limit,
horo 2014/10/01 08:32:21 Done.
+ {
+ m_fetchCredentialsMode = mode;
+ }
+
bool cacheControlContainsNoCache() const;
bool cacheControlContainsNoStore() const;
bool hasCacheValidatorFields() const;
@@ -236,6 +245,7 @@ private:
blink::WebURLRequest::RequestContext m_requestContext;
blink::WebURLRequest::FrameType m_frameType;
blink::WebURLRequest::FetchRequestMode m_fetchRequestMode;
+ blink::WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode;
ReferrerPolicy m_referrerPolicy;
mutable CacheControlHeader m_cacheControlHeaderCache;
@@ -274,6 +284,7 @@ public:
blink::WebURLRequest::RequestContext m_requestContext;
blink::WebURLRequest::FrameType m_frameType;
blink::WebURLRequest::FetchRequestMode m_fetchRequestMode;
+ blink::WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode;
ReferrerPolicy m_referrerPolicy;
};

Powered by Google App Engine
This is Rietveld 408576698