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

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

Issue 313553002: Add the navigator.serviceWorker.waiting property. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring patch to head. Created 6 years, 6 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/ServiceWorker.h
diff --git a/Source/modules/serviceworkers/ServiceWorker.h b/Source/modules/serviceworkers/ServiceWorker.h
index 111e02de8ee4a3df5522e9c7255880d608c7bbaa..58a40ea43e8145cdfe3a95e98223ac0bee06f158 100644
--- a/Source/modules/serviceworkers/ServiceWorker.h
+++ b/Source/modules/serviceworkers/ServiceWorker.h
@@ -52,15 +52,13 @@ class ServiceWorker
, public ScriptWrappable
, public blink::WebServiceWorkerProxy {
public:
- static PassRefPtr<ServiceWorker> create(ExecutionContext*, PassOwnPtr<blink::WebServiceWorker>);
-
virtual ~ServiceWorker() { }
// For CallbackPromiseAdapter
typedef blink::WebServiceWorker WebType;
static PassRefPtr<ServiceWorker> from(ScriptPromiseResolverWithContext*, WebType* worker);
- static PassRefPtr<ServiceWorker> from(ScriptState*, WebType*);
+ static PassRefPtr<ServiceWorker> from(ExecutionContext*, WebType*);
void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, ExceptionState&);
@@ -79,6 +77,7 @@ public:
private:
class ThenFunction;
+ static PassRefPtr<ServiceWorker> create(ExecutionContext*, PassOwnPtr<blink::WebServiceWorker>);
ServiceWorker(ExecutionContext*, PassOwnPtr<blink::WebServiceWorker>);
void onPromiseResolved();
void waitOnPromise(ScriptPromise);
« no previous file with comments | « LayoutTests/fast/serviceworker/serviceworkercontainer-interface.html ('k') | Source/modules/serviceworkers/ServiceWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698