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

Unified Diff: content/browser/service_worker/service_worker_context_watcher.cc

Issue 1037933002: [DevTools] Send ServiceWorkerVersion.ScriptLastModified and ScriptResponseTime to DevTools window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/browser/service_worker/service_worker_context_watcher.cc
diff --git a/content/browser/service_worker/service_worker_context_watcher.cc b/content/browser/service_worker/service_worker_context_watcher.cc
index 13e1228ec154cf3df65f99ad057107826db3d047..aa3667a5af7b85ccb64830ccba2a9e78bb5b80fa 100644
--- a/content/browser/service_worker/service_worker_context_watcher.cc
+++ b/content/browser/service_worker/service_worker_context_watcher.cc
@@ -210,6 +210,17 @@ void ServiceWorkerContextWatcher::OnErrorReported(int64 version_id,
base::Bind(error_callback_, registration_id, version_id, info));
}
+void ServiceWorkerContextWatcher::OnVersionUpdateTimeSet(
+ int64 version_id,
+ base::Time update_time) {
+ ServiceWorkerVersionInfo* version = version_info_map_.get(version_id);
+ DCHECK(version);
+ if (version->update_time == update_time)
+ return;
+ version->update_time = update_time;
+ SendVersionInfo(*version);
+}
+
void ServiceWorkerContextWatcher::OnRegistrationStored(int64 registration_id,
const GURL& pattern) {
SendRegistrationInfo(registration_id, pattern,

Powered by Google App Engine
This is Rietveld 408576698