| Index: Source/modules/serviceworkers/ServiceWorker.h
|
| diff --git a/Source/modules/serviceworkers/ServiceWorker.h b/Source/modules/serviceworkers/ServiceWorker.h
|
| index 58a40ea43e8145cdfe3a95e98223ac0bee06f158..ecd0a1befeab95ac9155f0a5d162efea564d2178 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorker.h
|
| +++ b/Source/modules/serviceworkers/ServiceWorker.h
|
| @@ -77,13 +77,25 @@ public:
|
| private:
|
| class ThenFunction;
|
|
|
| + enum ProxyState {
|
| + Initial,
|
| + RegisterPromisePending,
|
| + Ready,
|
| + ContextStopped
|
| + };
|
| +
|
| static PassRefPtr<ServiceWorker> create(ExecutionContext*, PassOwnPtr<blink::WebServiceWorker>);
|
| ServiceWorker(ExecutionContext*, PassOwnPtr<blink::WebServiceWorker>);
|
| + void setProxyState(ProxyState);
|
| void onPromiseResolved();
|
| void waitOnPromise(ScriptPromise);
|
|
|
| + // ActiveDOMObject overrides.
|
| + virtual bool hasPendingActivity() const OVERRIDE;
|
| + virtual void stop() OVERRIDE;
|
| +
|
| OwnPtr<blink::WebServiceWorker> m_outerWorker;
|
| - bool m_isPromisePending;
|
| + ProxyState m_proxyState;
|
| };
|
|
|
| } // namespace WebCore
|
|
|