| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ServiceWorkerClient_h | 5 #ifndef ServiceWorkerClient_h |
| 6 #define ServiceWorkerClient_h | 6 #define ServiceWorkerClient_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "bindings/core/v8/SerializedScriptValue.h" | 10 #include "bindings/core/v8/SerializedScriptValue.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 static ServiceWorkerClient* take(ScriptPromiseResolver*, PassOwnPtr<WebServi
ceWorkerClientInfo>); | 28 static ServiceWorkerClient* take(ScriptPromiseResolver*, PassOwnPtr<WebServi
ceWorkerClientInfo>); |
| 29 static ServiceWorkerClient* create(const WebServiceWorkerClientInfo&); | 29 static ServiceWorkerClient* create(const WebServiceWorkerClientInfo&); |
| 30 | 30 |
| 31 virtual ~ServiceWorkerClient(); | 31 virtual ~ServiceWorkerClient(); |
| 32 | 32 |
| 33 // Client.idl | 33 // Client.idl |
| 34 String url() const { return m_url; } | 34 String url() const { return m_url; } |
| 35 String frameType() const; | 35 String frameType() const; |
| 36 String id() const { return m_uuid; } | 36 String id() const { return m_uuid; } |
| 37 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> messag
e, const MessagePortArray*, ExceptionState&); | 37 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> messag
e, const MessagePortArray&, ExceptionState&); |
| 38 | 38 |
| 39 DEFINE_INLINE_VIRTUAL_TRACE() { } | 39 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 40 | 40 |
| 41 protected: | 41 protected: |
| 42 explicit ServiceWorkerClient(const WebServiceWorkerClientInfo&); | 42 explicit ServiceWorkerClient(const WebServiceWorkerClientInfo&); |
| 43 | 43 |
| 44 String uuid() const { return m_uuid; } | 44 String uuid() const { return m_uuid; } |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 String m_uuid; | 47 String m_uuid; |
| 48 String m_url; | 48 String m_url; |
| 49 WebURLRequest::FrameType m_frameType; | 49 WebURLRequest::FrameType m_frameType; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace blink | 52 } // namespace blink |
| 53 | 53 |
| 54 #endif // ServiceWorkerClient_h | 54 #endif // ServiceWorkerClient_h |
| OLD | NEW |