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

Unified Diff: content/common/background_fetch/background_fetch_types.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/common/background_fetch/background_fetch_types.h
diff --git a/content/common/background_fetch/background_fetch_types.h b/content/common/background_fetch/background_fetch_types.h
index 27c520b58471197ab4b4c0c962ef76e67b730b9f..263cfa618fa895f99715dd00601fee7830f0e431 100644
--- a/content/common/background_fetch/background_fetch_types.h
+++ b/content/common/background_fetch/background_fetch_types.h
@@ -10,6 +10,7 @@
#include <vector>
#include "content/common/content_export.h"
+#include "content/common/service_worker/service_worker_types.h"
namespace content {
@@ -59,6 +60,18 @@ struct CONTENT_EXPORT BackgroundFetchRegistration {
// TODO(peter): Support the `activeFetches` member of the specification.
};
+// Represents a request/response pair for a settled Background Fetch fetch.
+// Analogous to the following structure in the spec:
+// http://wicg.github.io/background-fetch/#backgroundfetchsettledfetch
+struct CONTENT_EXPORT BackgroundFetchSettledFetch {
+ BackgroundFetchSettledFetch();
+ BackgroundFetchSettledFetch(const BackgroundFetchSettledFetch& other);
+ ~BackgroundFetchSettledFetch();
+
+ ServiceWorkerFetchRequest request;
+ ServiceWorkerResponse response;
+};
+
} // namespace content
#endif // CONTENT_COMMON_BACKGROUND_FETCH_BACKGROUND_FETCH_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698