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 #include "config.h" | 5 #include "config.h" |
6 #include "FetchEvent.h" | 6 #include "FetchEvent.h" |
7 | 7 |
8 #include "core/events/ThreadLocalEventNames.h" | |
9 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" | 8 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
10 #include "wtf/RefPtr.h" | 9 #include "wtf/RefPtr.h" |
11 | 10 |
12 namespace WebCore { | 11 namespace WebCore { |
13 | 12 |
14 PassRefPtr<FetchEvent> FetchEvent::create() | 13 PassRefPtr<FetchEvent> FetchEvent::create() |
15 { | 14 { |
16 return adoptRef(new FetchEvent()); | 15 return adoptRef(new FetchEvent()); |
17 } | 16 } |
18 | 17 |
(...skipping 18 matching lines...) Expand all Loading... |
37 } | 36 } |
38 | 37 |
39 FetchEvent::FetchEvent(PassRefPtr<RespondWithObserver> observer) | 38 FetchEvent::FetchEvent(PassRefPtr<RespondWithObserver> observer) |
40 : Event(EventTypeNames::fetch, /*canBubble=*/false, /*cancelable=*/true) | 39 : Event(EventTypeNames::fetch, /*canBubble=*/false, /*cancelable=*/true) |
41 , m_observer(observer) | 40 , m_observer(observer) |
42 { | 41 { |
43 ScriptWrappable::init(this); | 42 ScriptWrappable::init(this); |
44 } | 43 } |
45 | 44 |
46 } // namespace WebCore | 45 } // namespace WebCore |
OLD | NEW |