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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/Cache.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: third_party/WebKit/Source/modules/cachestorage/Cache.h
diff --git a/third_party/WebKit/Source/modules/cachestorage/Cache.h b/third_party/WebKit/Source/modules/cachestorage/Cache.h
index 8357fe9989a32560e59e934966249821ec4e243a..3ae67a66454cd80d984ccaf2c68dc77c0bde67e6 100644
--- a/third_party/WebKit/Source/modules/cachestorage/Cache.h
+++ b/third_party/WebKit/Source/modules/cachestorage/Cache.h
@@ -14,9 +14,9 @@
#include "public/platform/modules/serviceworker/WebServiceWorkerCacheError.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
+#include "wtf/OwnPtr.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -31,7 +31,7 @@ class MODULES_EXPORT Cache final : public GarbageCollectedFinalized<Cache>, publ
DEFINE_WRAPPERTYPEINFO();
WTF_MAKE_NONCOPYABLE(Cache);
public:
- static Cache* create(GlobalFetch::ScopedFetcher*, std::unique_ptr<WebServiceWorkerCache>);
+ static Cache* create(GlobalFetch::ScopedFetcher*, PassOwnPtr<WebServiceWorkerCache>);
// From Cache.idl:
ScriptPromise match(ScriptState*, const RequestInfo&, const CacheQueryOptions&, ExceptionState&);
@@ -53,7 +53,7 @@ private:
class BlobHandleCallbackForPut;
class FetchResolvedForAdd;
friend class FetchResolvedForAdd;
- Cache(GlobalFetch::ScopedFetcher*, std::unique_ptr<WebServiceWorkerCache>);
+ Cache(GlobalFetch::ScopedFetcher*, PassOwnPtr<WebServiceWorkerCache>);
ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOptions&);
ScriptPromise matchAllImpl(ScriptState*);
@@ -67,7 +67,7 @@ private:
WebServiceWorkerCache* webCache() const;
Member<GlobalFetch::ScopedFetcher> m_scopedFetcher;
- std::unique_ptr<WebServiceWorkerCache> m_webCache;
+ OwnPtr<WebServiceWorkerCache> m_webCache;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698