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