Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h |
index d4fd0708dc6533d3e1faae1ca477dd9d0410dd1c..4bed79ff1568bc9dd0d3f075e7a1dda252478110 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.h |
@@ -16,11 +16,16 @@ |
namespace blink { |
class ExecutionContext; |
+class ScriptPromiseResolver; |
class ScriptState; |
class MODULES_EXPORT ServiceWorkerClient : public GarbageCollectedFinalized<ServiceWorkerClient>, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
+ // To be used by CallbackPromiseAdapter. |
+ using WebType = OwnPtr<WebServiceWorkerClientInfo>; |
+ |
+ static ServiceWorkerClient* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerClientInfo>); |
static ServiceWorkerClient* create(const WebServiceWorkerClientInfo&); |
virtual ~ServiceWorkerClient(); |