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

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

Issue 1102363002: Add Client Attribute to FetchEvent- Blink Side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/FetchEventInit.idl ('k') | Source/web/ServiceWorkerGlobalScopeProxy.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 cbf1dcef9206c32da0edee78b6b16c7999d98f67..73075ae2685ded9e180ffa834da3535e180f4dfe 100644
--- a/Source/platform/exported/WebServiceWorkerRequest.cpp
+++ b/Source/platform/exported/WebServiceWorkerRequest.cpp
@@ -32,6 +32,7 @@ public:
WebURLRequest::RequestContext m_requestContext;
WebURLRequest::FrameType m_frameType;
bool m_isReload;
+ WebServiceWorkerClientInfo m_client;
};
WebServiceWorkerRequest::WebServiceWorkerRequest()
@@ -176,4 +177,14 @@ bool WebServiceWorkerRequest::isReload() const
return m_private->m_isReload;
}
+void WebServiceWorkerRequest::setClient(const WebServiceWorkerClientInfo& client)
+{
+ m_private->m_client = client;
+}
+
+WebServiceWorkerClientInfo& WebServiceWorkerRequest::client() const
+{
+ return m_private->m_client;
+}
+
} // namespace blink
« no previous file with comments | « Source/modules/serviceworkers/FetchEventInit.idl ('k') | Source/web/ServiceWorkerGlobalScopeProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698