Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.h |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.h |
index 8ecc696afaaaba566d4a7f9ecda2a0e763220019..c0c714f2f173574ecfb76eb8f8435e6c909f9bd2 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.h |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.h |
@@ -10,7 +10,8 @@ |
#include "modules/serviceworkers/ServiceWorkerClient.h" |
#include "platform/heap/Handle.h" |
#include "wtf/Forward.h" |
-#include <memory> |
+#include "wtf/OwnPtr.h" |
+#include "wtf/PassOwnPtr.h" |
namespace blink { |
@@ -21,9 +22,9 @@ class MODULES_EXPORT ServiceWorkerWindowClient final : public ServiceWorkerClien |
DEFINE_WRAPPERTYPEINFO(); |
public: |
// To be used by CallbackPromiseAdapter. |
- using WebType = std::unique_ptr<WebServiceWorkerClientInfo>; |
+ using WebType = OwnPtr<WebServiceWorkerClientInfo>; |
- static ServiceWorkerWindowClient* take(ScriptPromiseResolver*, std::unique_ptr<WebServiceWorkerClientInfo>); |
+ static ServiceWorkerWindowClient* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerClientInfo>); |
static ServiceWorkerWindowClient* create(const WebServiceWorkerClientInfo&); |
~ServiceWorkerWindowClient() override; |