Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1405)

Unified Diff: content/browser/service_worker/embedded_worker_test_helper.h

Issue 2767093004: Implement the BackgroundFetch{Fail,ed} Service Worker events (Closed)
Patch Set: forward declare the data view Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/embedded_worker_test_helper.h
diff --git a/content/browser/service_worker/embedded_worker_test_helper.h b/content/browser/service_worker/embedded_worker_test_helper.h
index db9293b1f393a3f3cd74e68dc831a78fee0563dc..b0d7b2c6b5c8654ace3aa3dd2023ec33e4c7761f 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.h
+++ b/content/browser/service_worker/embedded_worker_test_helper.h
@@ -35,6 +35,7 @@ class InterfaceRegistry;
namespace content {
+struct BackgroundFetchSettledFetch;
class EmbeddedWorkerRegistry;
class EmbeddedWorkerTestHelper;
class MockRenderProcessHost;
@@ -198,6 +199,16 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
mojom::BackgroundFetchState state,
const mojom::ServiceWorkerEventDispatcher::
DispatchBackgroundFetchClickEventCallback& callback);
+ virtual void OnBackgroundFetchFailEvent(
+ const std::string& tag,
+ const std::vector<BackgroundFetchSettledFetch>& fetches,
+ const mojom::ServiceWorkerEventDispatcher::
+ DispatchBackgroundFetchFailEventCallback& callback);
+ virtual void OnBackgroundFetchedEvent(
+ const std::string& tag,
+ const std::vector<BackgroundFetchSettledFetch>& fetches,
+ const mojom::ServiceWorkerEventDispatcher::
+ DispatchBackgroundFetchedEventCallback& callback);
virtual void OnExtendableMessageEvent(
mojom::ExtendableMessageEventPtr event,
const mojom::ServiceWorkerEventDispatcher::
@@ -265,6 +276,16 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
mojom::BackgroundFetchState state,
const mojom::ServiceWorkerEventDispatcher::
DispatchBackgroundFetchClickEventCallback& callback);
+ void OnBackgroundFetchFailEventStub(
+ const std::string& tag,
+ const std::vector<BackgroundFetchSettledFetch>& fetches,
+ const mojom::ServiceWorkerEventDispatcher::
+ DispatchBackgroundFetchFailEventCallback& callback);
+ void OnBackgroundFetchedEventStub(
+ const std::string& tag,
+ const std::vector<BackgroundFetchSettledFetch>& fetches,
+ const mojom::ServiceWorkerEventDispatcher::
+ DispatchBackgroundFetchedEventCallback& callback);
void OnExtendableMessageEventStub(
mojom::ExtendableMessageEventPtr event,
const mojom::ServiceWorkerEventDispatcher::

Powered by Google App Engine
This is Rietveld 408576698