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

Unified Diff: content/child/quota_dispatcher.h

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years, 1 month 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 | « content/child/push_messaging/push_provider.cc ('k') | content/child/quota_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/quota_dispatcher.h
diff --git a/content/child/quota_dispatcher.h b/content/child/quota_dispatcher.h
index 0b73c145e92f5b98f4148c78cfb573db3a7207f4..e30187bff96d142af91153cfb1becaf538773881 100644
--- a/content/child/quota_dispatcher.h
+++ b/content/child/quota_dispatcher.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <set>
#include "base/id_map.h"
@@ -62,15 +63,15 @@ class QuotaDispatcher : public WorkerThread::Observer {
void QueryStorageUsageAndQuota(const GURL& gurl,
storage::StorageType type,
- Callback* callback);
+ std::unique_ptr<Callback> callback);
void RequestStorageQuota(int render_view_id,
const GURL& gurl,
storage::StorageType type,
uint64_t requested_size,
- Callback* callback);
+ std::unique_ptr<Callback> callback);
// Creates a new Callback instance for WebStorageQuotaCallbacks.
- static Callback* CreateWebStorageQuotaCallbacksWrapper(
+ static std::unique_ptr<Callback> CreateWebStorageQuotaCallbacksWrapper(
blink::WebStorageQuotaCallbacks callbacks);
private:
« no previous file with comments | « content/child/push_messaging/push_provider.cc ('k') | content/child/quota_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698