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

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 650033007: ServiceWorker: Make a way to retrieve a service worker version id (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 | « Source/core/fetch/ResourceFetcher.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.cpp
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp
index e6d13535757fe6171ad088c3e2218dda1bcc5d07..44a34832183c859de7db99a5b26220789c968c6b 100644
--- a/Source/core/fetch/ResourceFetcher.cpp
+++ b/Source/core/fetch/ResourceFetcher.cpp
@@ -624,6 +624,16 @@ bool ResourceFetcher::isControlledByServiceWorker() const
return localFrame->loader().client()->isControlledByServiceWorker(*m_documentLoader);
}
+int64_t ResourceFetcher::serviceWorkerID() const
+{
+ LocalFrame* localFrame = frame();
+ if (!localFrame)
+ return -1;
+ if (!m_documentLoader)
horo 2014/10/28 01:20:21 ResourceFetcher of the imported HTML doesn't have
nhiroki 2014/10/28 05:21:22 Thanks for your information! Done in the same way
+ return -1;
+ return localFrame->loader().client()->serviceWorkerID(*m_documentLoader);
+}
+
bool ResourceFetcher::shouldLoadNewResource(Resource::Type type) const
{
if (!frame())
« no previous file with comments | « Source/core/fetch/ResourceFetcher.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698