OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 NavigationPreloadManager_h | 5 #ifndef NavigationPreloadManager_h |
6 #define NavigationPreloadManager_h | 6 #define NavigationPreloadManager_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 "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 ScriptPromise enable(ScriptState*); | 27 ScriptPromise enable(ScriptState*); |
28 ScriptPromise disable(ScriptState*); | 28 ScriptPromise disable(ScriptState*); |
29 ScriptPromise setHeaderValue(ScriptState*, const String& value); | 29 ScriptPromise setHeaderValue(ScriptState*, const String& value); |
30 ScriptPromise getState(ScriptState*); | 30 ScriptPromise getState(ScriptState*); |
31 | 31 |
32 DECLARE_TRACE(); | 32 DECLARE_TRACE(); |
33 | 33 |
34 private: | 34 private: |
35 explicit NavigationPreloadManager(ServiceWorkerRegistration*); | 35 explicit NavigationPreloadManager(ServiceWorkerRegistration*); |
36 | 36 |
| 37 ScriptPromise setEnabled(bool enable, ScriptState*); |
| 38 |
37 Member<ServiceWorkerRegistration> m_registration; | 39 Member<ServiceWorkerRegistration> m_registration; |
38 }; | 40 }; |
39 | 41 |
40 } // namespace blink | 42 } // namespace blink |
41 | 43 |
42 #endif // NavigationPreloadManager_h | 44 #endif // NavigationPreloadManager_h |
OLD | NEW |