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 // Client.idl | 27 // Client.idl |
28 String url() const { return m_url; } | 28 String url() const { return m_url; } |
29 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> messag
e, const MessagePortArray*, ExceptionState&); | 29 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> messag
e, const MessagePortArray*, ExceptionState&); |
30 | 30 |
31 DEFINE_INLINE_VIRTUAL_TRACE() { } | 31 DEFINE_INLINE_VIRTUAL_TRACE() { } |
32 | 32 |
33 protected: | 33 protected: |
34 explicit ServiceWorkerClient(const WebServiceWorkerClientInfo&); | 34 explicit ServiceWorkerClient(const WebServiceWorkerClientInfo&); |
35 | 35 |
36 unsigned id() const { return m_id; } | 36 unsigned id() const { return m_id; } |
| 37 String uuid() const { return m_uuid; } |
37 | 38 |
38 private: | 39 private: |
39 unsigned m_id; | 40 unsigned m_id; // FIXME: Deprecate this when we switch to UUID. |
| 41 String m_uuid; |
40 String m_url; | 42 String m_url; |
41 }; | 43 }; |
42 | 44 |
43 } // namespace blink | 45 } // namespace blink |
44 | 46 |
45 #endif // ServiceWorkerClient_h | 47 #endif // ServiceWorkerClient_h |
OLD | NEW |