| 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 "bindings/core/v8/ScriptState.h" | 7 #include "bindings/core/v8/ScriptState.h" |
| 8 #include "bindings/core/v8/ToV8.h" | 8 #include "bindings/core/v8/ToV8.h" |
| 9 #include "bindings/core/v8/V8PrivateProperty.h" | 9 #include "bindings/core/v8/V8PrivateProperty.h" |
| 10 #include "modules/fetch/BytesConsumerForDataConsumerHandle.h" | 10 #include "modules/fetch/BytesConsumerForDataConsumerHandle.h" |
| 11 #include "modules/fetch/Request.h" | 11 #include "modules/fetch/Request.h" |
| 12 #include "modules/fetch/Response.h" | 12 #include "modules/fetch/Response.h" |
| 13 #include "modules/serviceworkers/FetchRespondWithObserver.h" | 13 #include "modules/serviceworkers/FetchRespondWithObserver.h" |
| 14 #include "modules/serviceworkers/ServiceWorkerError.h" | 14 #include "modules/serviceworkers/ServiceWorkerError.h" |
| 15 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" | 15 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
| 16 #include "platform/network/NetworkUtils.h" | 16 #include "platform/network/NetworkUtils.h" |
| 17 #include "platform/wtf/PtrUtil.h" |
| 18 #include "platform/wtf/RefPtr.h" |
| 17 #include "public/platform/WebURLResponse.h" | 19 #include "public/platform/WebURLResponse.h" |
| 18 #include "public/platform/modules/serviceworker/WebServiceWorkerError.h" | 20 #include "public/platform/modules/serviceworker/WebServiceWorkerError.h" |
| 19 #include "wtf/PtrUtil.h" | |
| 20 #include "wtf/RefPtr.h" | |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 FetchEvent* FetchEvent::Create(ScriptState* script_state, | 24 FetchEvent* FetchEvent::Create(ScriptState* script_state, |
| 25 const AtomicString& type, | 25 const AtomicString& type, |
| 26 const FetchEventInit& initializer) { | 26 const FetchEventInit& initializer) { |
| 27 return new FetchEvent(script_state, type, initializer, nullptr, nullptr, | 27 return new FetchEvent(script_state, type, initializer, nullptr, nullptr, |
| 28 false); | 28 false); |
| 29 } | 29 } |
| 30 | 30 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 } | 151 } |
| 152 | 152 |
| 153 DEFINE_TRACE(FetchEvent) { | 153 DEFINE_TRACE(FetchEvent) { |
| 154 visitor->Trace(observer_); | 154 visitor->Trace(observer_); |
| 155 visitor->Trace(request_); | 155 visitor->Trace(request_); |
| 156 visitor->Trace(preload_response_property_); | 156 visitor->Trace(preload_response_property_); |
| 157 ExtendableEvent::Trace(visitor); | 157 ExtendableEvent::Trace(visitor); |
| 158 } | 158 } |
| 159 | 159 |
| 160 } // namespace blink | 160 } // namespace blink |
| OLD | NEW |