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 |