OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ForeignFetchRespondWithObserver_h |
| 6 #define ForeignFetchRespondWithObserver_h |
| 7 |
| 8 #include "modules/serviceworkers/RespondWithObserver.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 // This class observes the service worker's handling of a ForeignFetchEvent and |
| 13 // notifies the client. |
| 14 class MODULES_EXPORT ForeignFetchRespondWithObserver final : public RespondWithO
bserver { |
| 15 public: |
| 16 static ForeignFetchRespondWithObserver* create(ExecutionContext*, int eventI
D, const KURL& requestURL, WebURLRequest::FetchRequestMode, WebURLRequest::Frame
Type, WebURLRequest::RequestContext); |
| 17 |
| 18 void responseWasFulfilled(const ScriptValue&) override; |
| 19 |
| 20 private: |
| 21 ForeignFetchRespondWithObserver(ExecutionContext*, int eventID, const KURL&
requestURL, WebURLRequest::FetchRequestMode, WebURLRequest::FrameType, WebURLReq
uest::RequestContext); |
| 22 }; |
| 23 |
| 24 } // namespace blink |
| 25 |
| 26 #endif // ForeignFetchRespondWithObserver_h |
OLD | NEW |