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

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: 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 b422e9f3e1e0ec5bfd4b658885e6ca5397d4f1fe..8232e785bb310eadded11800677037d9706f003c 100644
--- a/Source/platform/exported/WebServiceWorkerRequest.cpp
+++ b/Source/platform/exported/WebServiceWorkerRequest.cpp
@@ -24,6 +24,8 @@ public:
RefPtr<BlobDataHandle> blobDataHandle;
Referrer m_referrer;
WebURLRequest::FetchRequestMode m_mode;
+ WebURLRequest::RequestContext m_requestContext;
+ WebURLRequest::FrameType m_frameType;
bool m_isReload;
};
@@ -129,6 +131,26 @@ WebURLRequest::FetchRequestMode WebServiceWorkerRequest::mode() const
return m_private->m_mode;
}
+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