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

Unified Diff: third_party/WebKit/public/platform/modules/background_fetch/WebBackgroundFetchSettledFetch.h

Issue 2767093004: Implement the BackgroundFetch{Fail,ed} Service Worker events (Closed)
Patch Set: add missing uma 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: third_party/WebKit/public/platform/modules/background_fetch/WebBackgroundFetchSettledFetch.h
diff --git a/third_party/WebKit/public/platform/modules/background_fetch/WebBackgroundFetchSettledFetch.h b/third_party/WebKit/public/platform/modules/background_fetch/WebBackgroundFetchSettledFetch.h
new file mode 100644
index 0000000000000000000000000000000000000000..76b451f3c3e66e838390d8eb5430bb7ccfd657f5
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/background_fetch/WebBackgroundFetchSettledFetch.h
@@ -0,0 +1,27 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebBackgroundFetchSettledFetch_h
+#define WebBackgroundFetchSettledFetch_h
+
+#include "public/platform/WebCommon.h"
+#include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h"
+#include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h"
+
+namespace blink {
+
+// Represents a request/response pair for a settled Background Fetch fetch.
haraken 2017/03/24 02:15:40 a settled Background Fetch.
Peter Beverloo 2017/03/24 14:11:09 Done.
+// Analogous to the following structure in the spec:
+// http://wicg.github.io/background-fetch/#backgroundfetchsettledfetch
+struct WebBackgroundFetchSettledFetch {
+ WebBackgroundFetchSettledFetch() = default;
+ ~WebBackgroundFetchSettledFetch() = default;
+
+ WebServiceWorkerRequest request;
+ WebServiceWorkerResponse response;
+};
+
+} // namespace blink
+
+#endif // WebBackgroundFetchSettledFetch_h

Powered by Google App Engine
This is Rietveld 408576698