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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerWindowClient.h

Issue 850413002: [ServiceWorker] Implement ServiceWorkerClients.openWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_info_cb
Patch Set: Created 5 years, 11 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: Source/modules/serviceworkers/ServiceWorkerWindowClient.h
diff --git a/Source/modules/serviceworkers/ServiceWorkerWindowClient.h b/Source/modules/serviceworkers/ServiceWorkerWindowClient.h
index 57feb92377f080227c562287cef10d3b97c73085..11792efd055c52757ebab7bd1fb1bc798cb90587 100644
--- a/Source/modules/serviceworkers/ServiceWorkerWindowClient.h
+++ b/Source/modules/serviceworkers/ServiceWorkerWindowClient.h
@@ -12,11 +12,18 @@
namespace blink {
+class ScriptPromiseResolver;
class ScriptState;
class ServiceWorkerWindowClient final : public ServiceWorkerClient {
DEFINE_WRAPPERTYPEINFO();
public:
+ // To be used by CallbackPromiseAdapter.
+ typedef blink::WebServiceWorkerClientInfo WebType;
Michael van Ouwerkerk 2015/01/30 14:56:28 nit: omit namespace
mlamouri (slow - plz ping) 2015/02/02 16:09:26 Done.
+
+ static ServiceWorkerWindowClient* take(ScriptPromiseResolver*, WebType*);
+ static void dispose(WebType*);
+
static ServiceWorkerWindowClient* create(const WebServiceWorkerClientInfo&);
~ServiceWorkerWindowClient() override;

Powered by Google App Engine
This is Rietveld 408576698