OLD | NEW |
| (Empty) |
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 Cache_h | |
6 #define Cache_h | |
7 | |
8 #include "bindings/v8/ScriptState.h" | |
9 #include "bindings/v8/ScriptWrappable.h" | |
10 #include "wtf/Forward.h" | |
11 #include "wtf/PassRefPtr.h" | |
12 #include "wtf/RefCounted.h" | |
13 #include "wtf/Vector.h" | |
14 | |
15 namespace WebCore { | |
16 | |
17 class ExecutionContext; | |
18 class ScriptPromise; | |
19 | |
20 class Cache FINAL : public RefCounted<Cache>, public ScriptWrappable { | |
21 public: | |
22 static PassRefPtr<Cache> create(const Vector<String>& urlStrings); | |
23 ~Cache(); | |
24 | |
25 ScriptPromise match(ScriptState*, const String& urlString); | |
26 ScriptPromise ready(ScriptState*); | |
27 | |
28 private: | |
29 Cache(); | |
30 }; | |
31 | |
32 } // namespace WebCore | |
33 | |
34 #endif // Cache_h | |
OLD | NEW |