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

Unified Diff: content/browser/service_worker/service_worker_context_core.h

Issue 1181573010: ServiceWorker: Fix matching registration info missing during shift-reload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 6 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 | « no previous file | content/browser/service_worker/service_worker_provider_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_context_core.h
diff --git a/content/browser/service_worker/service_worker_context_core.h b/content/browser/service_worker/service_worker_context_core.h
index c764f0724f8267bd6cd4cf4b585e56d54074b6e4..47ca86b155e86ab57a928a927f772904367416c8 100644
--- a/content/browser/service_worker/service_worker_context_core.h
+++ b/content/browser/service_worker/service_worker_context_core.h
@@ -188,9 +188,16 @@ class CONTENT_EXPORT ServiceWorkerContextCore
ServiceWorkerRegistration* GetLiveRegistration(int64 registration_id);
void AddLiveRegistration(ServiceWorkerRegistration* registration);
void RemoveLiveRegistration(int64 registration_id);
+ const std::map<int64, ServiceWorkerRegistration*>& GetLiveRegistrations()
+ const {
+ return live_registrations_;
+ }
ServiceWorkerVersion* GetLiveVersion(int64 version_id);
void AddLiveVersion(ServiceWorkerVersion* version);
void RemoveLiveVersion(int64 registration_id);
+ const std::map<int64, ServiceWorkerVersion*>& GetLiveVersions() const {
+ return live_versions_;
+ }
std::vector<ServiceWorkerRegistrationInfo> GetAllLiveRegistrationInfo();
std::vector<ServiceWorkerVersionInfo> GetAllLiveVersionInfo();
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_provider_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698