| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 BackgroundFetchManager_h | 5 #ifndef BackgroundFetchManager_h |
| 6 #define BackgroundFetchManager_h | 6 #define BackgroundFetchManager_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/GarbageCollected.h" | 10 #include "platform/heap/GarbageCollected.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 const RequestOrUSVStringOrRequestOrUSVStringSequence& requests, | 41 const RequestOrUSVStringOrRequestOrUSVStringSequence& requests, |
| 42 const BackgroundFetchOptions&); | 42 const BackgroundFetchOptions&); |
| 43 ScriptPromise get(ScriptState*, const String& tag); | 43 ScriptPromise get(ScriptState*, const String& tag); |
| 44 ScriptPromise getTags(ScriptState*); | 44 ScriptPromise getTags(ScriptState*); |
| 45 | 45 |
| 46 DECLARE_TRACE(); | 46 DECLARE_TRACE(); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 explicit BackgroundFetchManager(ServiceWorkerRegistration*); | 49 explicit BackgroundFetchManager(ServiceWorkerRegistration*); |
| 50 | 50 |
| 51 void didFetch(ScriptPromiseResolver*, |
| 52 mojom::blink::BackgroundFetchError, |
| 53 BackgroundFetchRegistration*); |
| 51 void didGetRegistration(ScriptPromiseResolver*, | 54 void didGetRegistration(ScriptPromiseResolver*, |
| 52 mojom::blink::BackgroundFetchError, | 55 mojom::blink::BackgroundFetchError, |
| 53 BackgroundFetchRegistration*); | 56 BackgroundFetchRegistration*); |
| 54 void didGetTags(ScriptPromiseResolver*, | 57 void didGetTags(ScriptPromiseResolver*, |
| 55 mojom::blink::BackgroundFetchError, | 58 mojom::blink::BackgroundFetchError, |
| 56 const Vector<String>& tags); | 59 const Vector<String>& tags); |
| 57 | 60 |
| 58 Member<ServiceWorkerRegistration> m_registration; | 61 Member<ServiceWorkerRegistration> m_registration; |
| 59 Member<BackgroundFetchBridge> m_bridge; | 62 Member<BackgroundFetchBridge> m_bridge; |
| 60 }; | 63 }; |
| 61 | 64 |
| 62 } // namespace blink | 65 } // namespace blink |
| 63 | 66 |
| 64 #endif // BackgroundFetchManager_h | 67 #endif // BackgroundFetchManager_h |
| OLD | NEW |