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

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

Issue 2605923002: Remove base::ScopedPtrHashMap from content/browser/service_worker/. (Closed)
Patch Set: Created 4 years 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_context_watcher.cc » ('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_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 61ce04a7b279766a75b699432289e27aaa2e4924..afca96b2a80744066358829f86ffaa64e5a6d399 100644
--- a/content/browser/service_worker/service_worker_context_watcher.h
+++ b/content/browser/service_worker/service_worker_context_watcher.h
@@ -7,10 +7,10 @@
#include <stdint.h>
+#include <unordered_map>
#include <vector>
#include "base/callback.h"
-#include "base/containers/scoped_ptr_hash_map.h"
#include "content/browser/service_worker/service_worker_context_observer.h"
#include "content/browser/service_worker/service_worker_info.h"
@@ -54,8 +54,8 @@ class ServiceWorkerContextWatcher
void StoreRegistrationInfo(
const ServiceWorkerRegistrationInfo& registration,
- base::ScopedPtrHashMap<int64_t,
- std::unique_ptr<ServiceWorkerRegistrationInfo>>*
+ std::unordered_map<int64_t,
+ std::unique_ptr<ServiceWorkerRegistrationInfo>>*
info_map);
void StoreVersionInfo(const ServiceWorkerVersionInfo& version);
@@ -102,7 +102,7 @@ class ServiceWorkerContextWatcher
void OnRegistrationDeleted(int64_t registration_id,
const GURL& pattern) override;
- base::ScopedPtrHashMap<int64_t, std::unique_ptr<ServiceWorkerVersionInfo>>
+ std::unordered_map<int64_t, std::unique_ptr<ServiceWorkerVersionInfo>>
version_info_map_;
scoped_refptr<ServiceWorkerContextWrapper> context_;
WorkerRegistrationUpdatedCallback registration_callback_;
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_context_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698