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 3ae67a66454cd80d984ccaf2c68dc77c0bde67e6..8357fe9989a32560e59e934966249821ec4e243a 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*, PassOwnPtr<WebServiceWorkerCache>); |
+ static Cache* create(GlobalFetch::ScopedFetcher*, std::unique_ptr<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*, PassOwnPtr<WebServiceWorkerCache>); |
+ Cache(GlobalFetch::ScopedFetcher*, std::unique_ptr<WebServiceWorkerCache>); |
ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOptions&); |
ScriptPromise matchAllImpl(ScriptState*); |
@@ -67,7 +67,7 @@ private: |
WebServiceWorkerCache* webCache() const; |
Member<GlobalFetch::ScopedFetcher> m_scopedFetcher; |
- OwnPtr<WebServiceWorkerCache> m_webCache; |
+ std::unique_ptr<WebServiceWorkerCache> m_webCache; |
}; |
} // namespace blink |