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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp

Issue 1597383002: Service Worker: (Re-commit) Add FetchEvent.clientId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 11 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: third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp b/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
index 7ece4b9e46d4fdf13c8f51271c41885d5be958c6..785e1e527707a804e0cb56f85bf71d00a37df466 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/FetchEvent.cpp
@@ -30,6 +30,11 @@ Request* FetchEvent::request() const
return m_request;
}
+String FetchEvent::clientId() const
+{
+ return m_clientId;
+}
+
bool FetchEvent::isReload() const
{
return m_isReload;
@@ -57,6 +62,7 @@ FetchEvent::FetchEvent(const AtomicString& type, const FetchEventInit& initializ
{
if (initializer.hasRequest())
m_request = initializer.request();
+ m_clientId = initializer.clientId();
m_isReload = initializer.isReload();
}

Powered by Google App Engine
This is Rietveld 408576698