| 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 "modules/serviceworkers/FetchEvent.h" | 5 #include "modules/serviceworkers/FetchEvent.h" |
| 6 | 6 |
| 7 #include "modules/fetch/Request.h" | 7 #include "modules/fetch/Request.h" |
| 8 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" | 8 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
| 9 #include "wtf/RefPtr.h" | 9 #include "wtf/RefPtr.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 RawPtr<FetchEvent> FetchEvent::create() | 13 FetchEvent* FetchEvent::create() |
| 14 { | 14 { |
| 15 return new FetchEvent(); | 15 return new FetchEvent(); |
| 16 } | 16 } |
| 17 | 17 |
| 18 RawPtr<FetchEvent> FetchEvent::create(const AtomicString& type, const FetchEvent
Init& initializer) | 18 FetchEvent* FetchEvent::create(const AtomicString& type, const FetchEventInit& i
nitializer) |
| 19 { | 19 { |
| 20 return new FetchEvent(type, initializer, nullptr); | 20 return new FetchEvent(type, initializer, nullptr); |
| 21 } | 21 } |
| 22 | 22 |
| 23 RawPtr<FetchEvent> FetchEvent::create(const AtomicString& type, const FetchEvent
Init& initializer, RespondWithObserver* observer) | 23 FetchEvent* FetchEvent::create(const AtomicString& type, const FetchEventInit& i
nitializer, RespondWithObserver* observer) |
| 24 { | 24 { |
| 25 return new FetchEvent(type, initializer, observer); | 25 return new FetchEvent(type, initializer, observer); |
| 26 } | 26 } |
| 27 | 27 |
| 28 Request* FetchEvent::request() const | 28 Request* FetchEvent::request() const |
| 29 { | 29 { |
| 30 return m_request; | 30 return m_request; |
| 31 } | 31 } |
| 32 | 32 |
| 33 String FetchEvent::clientId() const | 33 String FetchEvent::clientId() const |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 DEFINE_TRACE(FetchEvent) | 70 DEFINE_TRACE(FetchEvent) |
| 71 { | 71 { |
| 72 visitor->trace(m_observer); | 72 visitor->trace(m_observer); |
| 73 visitor->trace(m_request); | 73 visitor->trace(m_request); |
| 74 ExtendableEvent::trace(visitor); | 74 ExtendableEvent::trace(visitor); |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| OLD | NEW |