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

Unified Diff: content/child/service_worker/service_worker_network_provider.cc

Issue 193723003: Identify service worker version at main resource load time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: content/child/service_worker/service_worker_network_provider.cc
diff --git a/content/child/service_worker/service_worker_network_provider.cc b/content/child/service_worker/service_worker_network_provider.cc
index 7246c3172930316fec18735c359171f0d6bc8859..23d34db51c54ad0a43db716452fa840e6cee00ed 100644
--- a/content/child/service_worker/service_worker_network_provider.cc
+++ b/content/child/service_worker/service_worker_network_provider.cc
@@ -49,4 +49,13 @@ ServiceWorkerNetworkProvider::~ServiceWorkerNetworkProvider() {
new ServiceWorkerHostMsg_ProviderDestroyed(provider_id_));
}
+void ServiceWorkerNetworkProvider::SetServiceWorkerVersionId(
+ int64 version_id) {
+ if (!ChildThread::current())
+ return; // May be null in some tests.
+ //ChildThread::current()->Send(
+ // new ServiceWorkerHostMsg_SetVersionId(provider_id_, version_id));
+ // todo: add new message type and handler in backend
kinuko 2014/03/14 11:46:44 (I assume you'll make it a proper TODO comment or
michaeln 2014/03/15 01:19:26 Done (added the message, will add the remote side
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698