Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h |
index fdd2d3fae3fce6e8ca5045b7362a641b6ecf4030..1d93fa0764669d6044e25e5f125d176a48708dea 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h |
@@ -38,8 +38,9 @@ |
#include "modules/ModulesExport.h" |
#include "public/platform/modules/serviceworker/WebServiceWorker.h" |
#include "public/platform/modules/serviceworker/WebServiceWorkerProxy.h" |
+#include "wtf/OwnPtr.h" |
+#include "wtf/PassOwnPtr.h" |
#include "wtf/PassRefPtr.h" |
-#include <memory> |
namespace blink { |
@@ -49,7 +50,7 @@ class MODULES_EXPORT ServiceWorker final : public AbstractWorker, public ActiveS |
DEFINE_WRAPPERTYPEINFO(); |
USING_GARBAGE_COLLECTED_MIXIN(ServiceWorker); |
public: |
- static ServiceWorker* from(ExecutionContext*, std::unique_ptr<WebServiceWorker::Handle>); |
+ static ServiceWorker* from(ExecutionContext*, PassOwnPtr<WebServiceWorker::Handle>); |
~ServiceWorker() override; |
DECLARE_VIRTUAL_TRACE(); |
@@ -71,8 +72,8 @@ public: |
void internalsTerminate(); |
private: |
- static ServiceWorker* getOrCreate(ExecutionContext*, std::unique_ptr<WebServiceWorker::Handle>); |
- ServiceWorker(ExecutionContext*, std::unique_ptr<WebServiceWorker::Handle>); |
+ static ServiceWorker* getOrCreate(ExecutionContext*, PassOwnPtr<WebServiceWorker::Handle>); |
+ ServiceWorker(ExecutionContext*, PassOwnPtr<WebServiceWorker::Handle>); |
// ActiveScriptWrappable overrides. |
bool hasPendingActivity() const final; |
@@ -81,7 +82,7 @@ private: |
void stop() override; |
// A handle to the service worker representation in the embedder. |
- std::unique_ptr<WebServiceWorker::Handle> m_handle; |
+ OwnPtr<WebServiceWorker::Handle> m_handle; |
bool m_wasStopped; |
}; |