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

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: fix test failure 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 22169d18ba6d5da110401e9bf146493724b929c1..5d1a1a8ff813dcd845e9299ebe358a64a79a2b90 100644
--- a/content/browser/service_worker/service_worker_context_watcher.cc
+++ b/content/browser/service_worker/service_worker_context_watcher.cc
@@ -199,6 +199,17 @@ void ServiceWorkerContextWatcher::OnVersionStateChanged(
version_info_map_.erase(version_id);
}
+void ServiceWorkerContextWatcher::OnMainScriptHttpResponseInfoSet(
+ int64 version_id,
+ base::Time script_response_time,
+ base::Time script_last_modified) {
+ ServiceWorkerVersionInfo* version = version_info_map_.get(version_id);
+ DCHECK(version);
+ version->script_response_time = script_response_time;
+ version->script_last_modified = script_last_modified;
+ SendVersionInfo(*version);
+}
+
void ServiceWorkerContextWatcher::OnErrorReported(int64 version_id,
int process_id,
int thread_id,
« no previous file with comments | « content/browser/service_worker/service_worker_context_watcher.h ('k') | content/browser/service_worker/service_worker_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698