Chromium Code Reviews| Index: Source/modules/serviceworkers/ServiceWorkerClient.h |
| diff --git a/Source/modules/serviceworkers/ServiceWorkerClient.h b/Source/modules/serviceworkers/ServiceWorkerClient.h |
| index b1d96c3d1b0ee786aec80b46145e144fddca80db..c211360795a5f526a4dc8a100b1db2df4209b116 100644 |
| --- a/Source/modules/serviceworkers/ServiceWorkerClient.h |
| +++ b/Source/modules/serviceworkers/ServiceWorkerClient.h |
| @@ -9,6 +9,7 @@ |
| #include "bindings/core/v8/ScriptWrappable.h" |
| #include "bindings/core/v8/SerializedScriptValue.h" |
| #include "platform/heap/Handle.h" |
| +#include "public/platform/WebServiceWorkerClientsInfo.h" |
| #include "wtf/Forward.h" |
| namespace blink { |
| @@ -16,21 +17,31 @@ namespace blink { |
| class ExecutionContext; |
| class ScriptState; |
| -class ServiceWorkerClient final : public GarbageCollected<ServiceWorkerClient>, public ScriptWrappable { |
| +class ServiceWorkerClient final : public GarbageCollectedFinalized<ServiceWorkerClient>, public ScriptWrappable { |
| DEFINE_WRAPPERTYPEINFO(); |
| public: |
| - static ServiceWorkerClient* create(unsigned id); |
| + static ServiceWorkerClient* create(const WebServiceWorkerClientInfo& into); |
|
nhiroki
2014/12/08 06:02:47
nit: s/into/info
Kunihiko Sakamoto
2014/12/08 07:40:00
Removed this unnecessary parameter name.
|
| + |
| + ~ServiceWorkerClient(); |
| // ServiceWorkerClient.idl |
| + String visibilityState() const { return m_visibilityState; } |
| + bool focused() const { return m_focused; } |
| + String url() const { return m_url; } |
| + String frameType() const; |
| void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, ExceptionState&); |
| ScriptPromise focus(ScriptState*); |
| void trace(Visitor*) { } |
| private: |
| - explicit ServiceWorkerClient(unsigned id); |
| + explicit ServiceWorkerClient(const WebServiceWorkerClientInfo& into); |
| unsigned m_id; |
| + String m_visibilityState; |
| + bool m_focused; |
| + String m_url; |
| + WebURLRequest::FrameType m_frameType; |
| }; |
| } // namespace blink |