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 ServiceWorkerClients_h | 5 #ifndef ServiceWorkerClients_h |
6 #define ServiceWorkerClients_h | 6 #define ServiceWorkerClients_h |
7 | 7 |
8 #include "modules/serviceworkers/ClientQueryOptions.h" | 8 #include "modules/serviceworkers/ClientQueryOptions.h" |
9 #include "platform/bindings/ScriptWrappable.h" | 9 #include "platform/bindings/ScriptWrappable.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 public: | 23 public: |
24 static ServiceWorkerClients* Create(); | 24 static ServiceWorkerClients* Create(); |
25 | 25 |
26 // Clients.idl | 26 // Clients.idl |
27 ScriptPromise get(ScriptState*, const String& id); | 27 ScriptPromise get(ScriptState*, const String& id); |
28 ScriptPromise matchAll(ScriptState*, const ClientQueryOptions&); | 28 ScriptPromise matchAll(ScriptState*, const ClientQueryOptions&); |
29 ScriptPromise openWindow(ScriptState*, const String& url); | 29 ScriptPromise openWindow(ScriptState*, const String& url); |
30 ScriptPromise claim(ScriptState*); | 30 ScriptPromise claim(ScriptState*); |
31 | 31 |
| 32 // This interface is not part of Clients.idl. |redirect_url| is the last |
| 33 // navigation occured before |url|. |
| 34 ScriptPromise openWindow(ScriptState*, |
| 35 const String& redirect_url, |
| 36 const String& url); |
| 37 |
32 DEFINE_INLINE_TRACE() {} | 38 DEFINE_INLINE_TRACE() {} |
33 | 39 |
34 private: | 40 private: |
35 ServiceWorkerClients(); | 41 ServiceWorkerClients(); |
36 }; | 42 }; |
37 | 43 |
38 } // namespace blink | 44 } // namespace blink |
39 | 45 |
40 #endif // ServiceWorkerClients_h | 46 #endif // ServiceWorkerClients_h |
OLD | NEW |