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

Unified Diff: content/renderer/cache_storage/webserviceworkercachestorage_impl.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
Index: content/renderer/cache_storage/webserviceworkercachestorage_impl.h
diff --git a/content/renderer/cache_storage/webserviceworkercachestorage_impl.h b/content/renderer/cache_storage/webserviceworkercachestorage_impl.h
index de77cad88c61ab28b08d8ace37a4c7dabfa733e1..59785b39ea07710c80923b511f2ab69c4e065208 100644
--- a/content/renderer/cache_storage/webserviceworkercachestorage_impl.h
+++ b/content/renderer/cache_storage/webserviceworkercachestorage_impl.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_RENDERER_SERVICE_WORKER_WEB_SERVICE_WORKER_CACHE_STORAGE_IMPL_H_
#define CONTENT_RENDERER_SERVICE_WORKER_WEB_SERVICE_WORKER_CACHE_STORAGE_IMPL_H_
+#include <memory>
+
#include "base/macros.h"
#include "content/child/thread_safe_sender.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -33,15 +35,16 @@ class WebServiceWorkerCacheStorageImpl
~WebServiceWorkerCacheStorageImpl() override;
// From WebServiceWorkerCacheStorage:
- void dispatchHas(CacheStorageCallbacks* callbacks,
+ void dispatchHas(std::unique_ptr<CacheStorageCallbacks> callbacks,
const blink::WebString& cacheName) override;
- void dispatchOpen(CacheStorageWithCacheCallbacks* callbacks,
+ void dispatchOpen(std::unique_ptr<CacheStorageWithCacheCallbacks> callbacks,
const blink::WebString& cacheName) override;
- void dispatchDelete(CacheStorageCallbacks* callbacks,
+ void dispatchDelete(std::unique_ptr<CacheStorageCallbacks> callbacks,
const blink::WebString& cacheName) override;
- void dispatchKeys(CacheStorageKeysCallbacks* callbacks) override;
+ void dispatchKeys(
+ std::unique_ptr<CacheStorageKeysCallbacks> callbacks) override;
void dispatchMatch(
- CacheStorageMatchCallbacks* callbacks,
+ std::unique_ptr<CacheStorageMatchCallbacks> callbacks,
const blink::WebServiceWorkerRequest& request,
const blink::WebServiceWorkerCache::QueryParams& query_params) override;

Powered by Google App Engine
This is Rietveld 408576698