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

Unified Diff: Source/platform/exported/WebServiceWorkerRequest.cpp

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 mkwst'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
« no previous file with comments | « Source/modules/serviceworkers/FetchRequestData.cpp ('k') | Source/platform/exported/WebURLRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebServiceWorkerRequest.cpp
diff --git a/Source/platform/exported/WebServiceWorkerRequest.cpp b/Source/platform/exported/WebServiceWorkerRequest.cpp
index b422e9f3e1e0ec5bfd4b658885e6ca5397d4f1fe..b1f777b9fe0e70ada989670c105721f6ec5f4ab0 100644
--- a/Source/platform/exported/WebServiceWorkerRequest.cpp
+++ b/Source/platform/exported/WebServiceWorkerRequest.cpp
@@ -8,6 +8,7 @@
#include "platform/blob/BlobData.h"
#include "platform/weborigin/KURL.h"
#include "public/platform/WebHTTPHeaderVisitor.h"
+#include "public/platform/WebURLRequest.h"
namespace blink {
@@ -15,15 +16,15 @@ class WebServiceWorkerRequestPrivate : public RefCounted<WebServiceWorkerRequest
public:
WebServiceWorkerRequestPrivate()
: m_mode(WebURLRequest::FetchRequestModeNoCORS)
- , m_isReload(false)
- {
- }
+ , m_credentialsMode(WebURLRequest::FetchCredentialsModeOmit)
+ , m_isReload(false) { }
WebURL m_url;
WebString m_method;
HTTPHeaderMap m_headers;
RefPtr<BlobDataHandle> blobDataHandle;
Referrer m_referrer;
WebURLRequest::FetchRequestMode m_mode;
+ WebURLRequest::FetchCredentialsMode m_credentialsMode;
bool m_isReload;
};
@@ -129,6 +130,16 @@ WebURLRequest::FetchRequestMode WebServiceWorkerRequest::mode() const
return m_private->m_mode;
}
+void WebServiceWorkerRequest::setCredentialsMode(WebURLRequest::FetchCredentialsMode credentialsMode)
+{
+ m_private->m_credentialsMode = credentialsMode;
+}
+
+WebURLRequest::FetchCredentialsMode WebServiceWorkerRequest::credentialsMode() const
+{
+ return m_private->m_credentialsMode;
+}
+
void WebServiceWorkerRequest::setIsReload(bool isReload)
{
m_private->m_isReload = isReload;
« no previous file with comments | « Source/modules/serviceworkers/FetchRequestData.cpp ('k') | Source/platform/exported/WebURLRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698