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

Unified Diff: content/child/push_messaging/push_provider.h

Issue 801643005: Use IDMap in PushProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/child/push_messaging/push_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/push_messaging/push_provider.h
diff --git a/content/child/push_messaging/push_provider.h b/content/child/push_messaging/push_provider.h
index 313a304a5cbdb1dd661ab40684b0b715afb1ba2a..0c81d60a47608071e59c8d6d67a4edc81e61d058 100644
--- a/content/child/push_messaging/push_provider.h
+++ b/content/child/push_messaging/push_provider.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/id_map.h"
#include "base/memory/ref_counted.h"
#include "content/child/push_messaging/push_dispatcher.h"
#include "content/child/worker_task_runner.h"
@@ -59,11 +60,12 @@ class PushProvider : public blink::WebPushProvider,
// Stores the registration callbacks with their request ids. This class owns
// the callbacks.
- std::map<int, blink::WebPushRegistrationCallbacks*> registration_callbacks_;
+ IDMap<blink::WebPushRegistrationCallbacks, IDMapOwnPointer>
+ registration_callbacks_;
// Stores the permission status callbacks with their request ids. This class
// owns the callbacks.
- std::map<int, blink::WebPushPermissionStatusCallbacks*>
+ IDMap<blink::WebPushPermissionStatusCallbacks, IDMapOwnPointer>
permission_status_callbacks_;
DISALLOW_COPY_AND_ASSIGN(PushProvider);
« no previous file with comments | « no previous file | content/child/push_messaging/push_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698