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

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

Issue 625513002: [ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 2 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 | « no previous file | public/platform/WebServiceWorkerRequest.h » ('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 b1f777b9fe0e70ada989670c105721f6ec5f4ab0..cbf1dcef9206c32da0edee78b6b16c7999d98f67 100644
--- a/Source/platform/exported/WebServiceWorkerRequest.cpp
+++ b/Source/platform/exported/WebServiceWorkerRequest.cpp
@@ -17,7 +17,11 @@ public:
WebServiceWorkerRequestPrivate()
: m_mode(WebURLRequest::FetchRequestModeNoCORS)
, m_credentialsMode(WebURLRequest::FetchCredentialsModeOmit)
- , m_isReload(false) { }
+ , m_requestContext(WebURLRequest::RequestContextUnspecified)
+ , m_frameType(WebURLRequest::FrameTypeNone)
+ , m_isReload(false)
+ {
+ }
WebURL m_url;
WebString m_method;
HTTPHeaderMap m_headers;
@@ -25,6 +29,8 @@ public:
Referrer m_referrer;
WebURLRequest::FetchRequestMode m_mode;
WebURLRequest::FetchCredentialsMode m_credentialsMode;
+ WebURLRequest::RequestContext m_requestContext;
+ WebURLRequest::FrameType m_frameType;
bool m_isReload;
};
@@ -140,6 +146,26 @@ WebURLRequest::FetchCredentialsMode WebServiceWorkerRequest::credentialsMode() c
return m_private->m_credentialsMode;
}
+void WebServiceWorkerRequest::setRequestContext(WebURLRequest::RequestContext requestContext)
+{
+ m_private->m_requestContext = requestContext;
+}
+
+WebURLRequest::RequestContext WebServiceWorkerRequest::requestContext() const
+{
+ return m_private->m_requestContext;
+}
+
+void WebServiceWorkerRequest::setFrameType(WebURLRequest::FrameType frameType)
+{
+ m_private->m_frameType = frameType;
+}
+
+WebURLRequest::FrameType WebServiceWorkerRequest::frameType() const
+{
+ return m_private->m_frameType;
+}
+
void WebServiceWorkerRequest::setIsReload(bool isReload)
{
m_private->m_isReload = isReload;
« no previous file with comments | « no previous file | public/platform/WebServiceWorkerRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698