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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.h

Issue 1845463002: Start implementing ForeignFetchEvent for foreign fetch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.h b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.h
new file mode 100644
index 0000000000000000000000000000000000000000..f7e61cb34421ba9ae38e999f911989df8492710b
--- /dev/null
+++ b/third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.h
@@ -0,0 +1,26 @@
+// Copyright 2016 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 ForeignFetchRespondWithObserver_h
+#define ForeignFetchRespondWithObserver_h
+
+#include "modules/serviceworkers/RespondWithObserver.h"
+
+namespace blink {
+
+// This class observes the service worker's handling of a ForeignFetchEvent and
+// notifies the client.
+class MODULES_EXPORT ForeignFetchRespondWithObserver final : public RespondWithObserver {
+public:
+ static ForeignFetchRespondWithObserver* create(ExecutionContext*, int eventID, const KURL& requestURL, WebURLRequest::FetchRequestMode, WebURLRequest::FrameType, WebURLRequest::RequestContext);
+
+ void responseWasFulfilled(const ScriptValue&) override;
+
+private:
+ ForeignFetchRespondWithObserver(ExecutionContext*, int eventID, const KURL& requestURL, WebURLRequest::FetchRequestMode, WebURLRequest::FrameType, WebURLRequest::RequestContext);
+};
+
+} // namespace blink
+
+#endif // ForeignFetchRespondWithObserver_h

Powered by Google App Engine
This is Rietveld 408576698