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_ |