Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / serviceworkers / ServiceWorkerClients.h
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
3 // found in the LICENSE file.
4
5 #ifndef ServiceWorkerClients_h
6 #define ServiceWorkerClients_h
7
8 #include "bindings/v8/ScriptWrappable.h"
9 #include "public/platform/WebServiceWorkerClientsInfo.h"
10 #include "wtf/Forward.h"
11
12 namespace WebCore {
13
14 class Client;
15 class ExecutionContext;
16 class ScriptState;
17 class ScriptPromise;
18
19 class ServiceWorkerClients FINAL : public RefCounted<ServiceWorkerClients>, public ScriptWrappable {
20 public:
21     static PassRefPtr<ServiceWorkerClients> create();
22     ~ServiceWorkerClients();
23
24     // ServiceWorkerClients.idl
25     ScriptPromise getServiced(ExecutionContext*);
26
27 private:
28     ServiceWorkerClients();
29 };
30
31 } // namespace WebCore
32
33 #endif // ServiceWorkerClients_h