| 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 BackgroundFetchBridge_h | 5 #ifndef BackgroundFetchBridge_h |
| 6 #define BackgroundFetchBridge_h | 6 #define BackgroundFetchBridge_h |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include "modules/serviceworkers/ServiceWorkerRegistration.h" | 9 #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
| 10 #include "platform/Supplementable.h" | 10 #include "platform/Supplementable.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "platform/wtf/Functional.h" |
| 13 #include "platform/wtf/Vector.h" |
| 14 #include "platform/wtf/text/WTFString.h" |
| 12 #include "public/platform/modules/background_fetch/background_fetch.mojom-blink.
h" | 15 #include "public/platform/modules/background_fetch/background_fetch.mojom-blink.
h" |
| 13 #include "wtf/Functional.h" | |
| 14 #include "wtf/Vector.h" | |
| 15 #include "wtf/text/WTFString.h" | |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class BackgroundFetchOptions; | 19 class BackgroundFetchOptions; |
| 20 class BackgroundFetchRegistration; | 20 class BackgroundFetchRegistration; |
| 21 class WebServiceWorkerRequest; | 21 class WebServiceWorkerRequest; |
| 22 | 22 |
| 23 // The bridge is responsible for establishing and maintaining the Mojo | 23 // The bridge is responsible for establishing and maintaining the Mojo |
| 24 // connection to the BackgroundFetchService. It's keyed on an active Service | 24 // connection to the BackgroundFetchService. It's keyed on an active Service |
| 25 // Worker Registration. | 25 // Worker Registration. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 void DidGetRegistration(std::unique_ptr<RegistrationCallback>, | 86 void DidGetRegistration(std::unique_ptr<RegistrationCallback>, |
| 87 mojom::blink::BackgroundFetchError, | 87 mojom::blink::BackgroundFetchError, |
| 88 mojom::blink::BackgroundFetchRegistrationPtr); | 88 mojom::blink::BackgroundFetchRegistrationPtr); |
| 89 | 89 |
| 90 mojom::blink::BackgroundFetchServicePtr background_fetch_service_; | 90 mojom::blink::BackgroundFetchServicePtr background_fetch_service_; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| 94 | 94 |
| 95 #endif // BackgroundFetchBridge_h | 95 #endif // BackgroundFetchBridge_h |
| OLD | NEW |