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

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

Issue 1099383002: Change ScopedPtrHashMap's 2nd template parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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.h
diff --git a/content/browser/service_worker/service_worker_context_watcher.h b/content/browser/service_worker/service_worker_context_watcher.h
index a6d8d0a7b8a5e95cb4cd194a79075ee208563767..9d4bf1f64d921e2ca71dc56d1fd99cb5dc4a4bfa 100644
--- a/content/browser/service_worker/service_worker_context_watcher.h
+++ b/content/browser/service_worker/service_worker_context_watcher.h
@@ -50,7 +50,8 @@ class ServiceWorkerContextWatcher
void StoreRegistrationInfo(
const ServiceWorkerRegistrationInfo& registration,
- base::ScopedPtrHashMap<int64, ServiceWorkerRegistrationInfo>* info_map);
+ base::ScopedPtrHashMap<int64, scoped_ptr<ServiceWorkerRegistrationInfo>>*
+ info_map);
void StoreVersionInfo(const ServiceWorkerVersionInfo& version);
void SendRegistrationInfo(
@@ -88,7 +89,8 @@ class ServiceWorkerContextWatcher
void OnRegistrationDeleted(int64 registration_id,
const GURL& pattern) override;
- base::ScopedPtrHashMap<int64, ServiceWorkerVersionInfo> version_info_map_;
+ base::ScopedPtrHashMap<int64, scoped_ptr<ServiceWorkerVersionInfo>>
+ version_info_map_;
scoped_refptr<ServiceWorkerContextWrapper> context_;
WorkerRegistrationUpdatedCallback registration_callback_;
WorkerVersionUpdatedCallback version_callback_;

Powered by Google App Engine
This is Rietveld 408576698