OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 FetchEvent_h | 5 #ifndef FetchEvent_h |
6 #define FetchEvent_h | 6 #define FetchEvent_h |
7 | 7 |
8 #include "core/events/Event.h" | 8 #include "modules/EventModules.h" |
9 #include "modules/serviceworkers/RespondWithObserver.h" | 9 #include "modules/serviceworkers/RespondWithObserver.h" |
10 | 10 |
11 namespace WebCore { | 11 namespace WebCore { |
12 | 12 |
13 class ExecutionContext; | 13 class ExecutionContext; |
14 class RespondWithObserver; | 14 class RespondWithObserver; |
15 | 15 |
16 // A fetch event is dispatched by the client to a service worker's script | 16 // A fetch event is dispatched by the client to a service worker's script |
17 // context. RespondWithObserver can be used to notify the client about the | 17 // context. RespondWithObserver can be used to notify the client about the |
18 // service worker's response. | 18 // service worker's response. |
(...skipping 13 matching lines...) Expand all Loading... |
32 FetchEvent(); | 32 FetchEvent(); |
33 explicit FetchEvent(PassRefPtr<RespondWithObserver>); | 33 explicit FetchEvent(PassRefPtr<RespondWithObserver>); |
34 | 34 |
35 private: | 35 private: |
36 RefPtr<RespondWithObserver> m_observer; | 36 RefPtr<RespondWithObserver> m_observer; |
37 }; | 37 }; |
38 | 38 |
39 } // namespace WebCore | 39 } // namespace WebCore |
40 | 40 |
41 #endif // FetchEvent_h | 41 #endif // FetchEvent_h |
OLD | NEW |