OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SyncManager_h | 5 #ifndef SyncManager_h |
6 #define SyncManager_h | 6 #define SyncManager_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 public: | 21 public: |
22 static SyncManager* create(ServiceWorkerRegistration* registration) | 22 static SyncManager* create(ServiceWorkerRegistration* registration) |
23 { | 23 { |
24 return new SyncManager(registration); | 24 return new SyncManager(registration); |
25 } | 25 } |
26 | 26 |
27 unsigned long minAllowablePeriod(); | 27 unsigned long minAllowablePeriod(); |
28 | 28 |
29 ScriptPromise registerFunction(ScriptState*); | 29 ScriptPromise registerFunction(ScriptState*); |
30 ScriptPromise registerFunction(ScriptState*, const SyncRegistrationOptions&)
; | 30 ScriptPromise registerFunction(ScriptState*, const SyncRegistrationOptions&)
; |
31 ScriptPromise getRegistration(blink::ScriptState*, const String&); | 31 ScriptPromise getRegistration(ScriptState*, const String&); |
32 ScriptPromise getRegistrations(ScriptState*); | 32 ScriptPromise getRegistrations(ScriptState*); |
33 ScriptPromise permissionState(ScriptState*); | 33 ScriptPromise permissionState(ScriptState*); |
34 | 34 |
35 DECLARE_TRACE(); | 35 DECLARE_TRACE(); |
36 | 36 |
37 private: | 37 private: |
38 explicit SyncManager(ServiceWorkerRegistration*); | 38 explicit SyncManager(ServiceWorkerRegistration*); |
39 | 39 |
40 Member<ServiceWorkerRegistration> m_registration; | 40 Member<ServiceWorkerRegistration> m_registration; |
41 }; | 41 }; |
42 | 42 |
43 } // namespace blink | 43 } // namespace blink |
44 | 44 |
45 #endif // SyncManager_h | 45 #endif // SyncManager_h |
OLD | NEW |