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

Unified Diff: content/common/background_fetch/background_fetch_struct_traits.cc

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/common/background_fetch/background_fetch_struct_traits.cc
diff --git a/content/common/background_fetch/background_fetch_struct_traits.cc b/content/common/background_fetch/background_fetch_struct_traits.cc
index 50dd6d654cb5c7fbe5d9be00f462bd9c704a6514..db88ad861e1e662d74f4bc330e7e0ff1623aaa34 100644
--- a/content/common/background_fetch/background_fetch_struct_traits.cc
+++ b/content/common/background_fetch/background_fetch_struct_traits.cc
@@ -4,6 +4,8 @@
#include "content/common/background_fetch/background_fetch_struct_traits.h"
+#include "content/common/service_worker/service_worker_event_dispatcher.mojom.h"
+#include "content/common/service_worker/service_worker_messages.h"
#include "mojo/public/cpp/bindings/array_data_view.h"
namespace mojo {
@@ -36,6 +38,15 @@ bool StructTraits<blink::mojom::BackgroundFetchRegistrationDataView,
}
// static
+bool StructTraits<content::mojom::BackgroundFetchSettledFetchDataView,
+ content::BackgroundFetchSettledFetch>::
+ Read(content::mojom::BackgroundFetchSettledFetchDataView data,
+ content::BackgroundFetchSettledFetch* fetch) {
+ return data.ReadRequest(&fetch->request) &&
+ data.ReadResponse(&fetch->response);
+}
+
+// static
bool StructTraits<
blink::mojom::IconDefinitionDataView,
content::IconDefinition>::Read(blink::mojom::IconDefinitionDataView data,

Powered by Google App Engine
This is Rietveld 408576698