| 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/fetch/FetchResponseData.h" | 5 #include "modules/fetch/FetchResponseData.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptState.h" | 7 #include "bindings/core/v8/ScriptState.h" |
| 8 #include "core/dom/DOMArrayBuffer.h" | 8 #include "core/dom/DOMArrayBuffer.h" |
| 9 #include "modules/fetch/BodyStreamBuffer.h" | 9 #include "modules/fetch/BodyStreamBuffer.h" |
| 10 #include "modules/fetch/FetchHeaderList.h" | 10 #include "modules/fetch/FetchHeaderList.h" |
| 11 #include "platform/loader/fetch/FetchUtils.h" | 11 #include "platform/loader/fetch/FetchUtils.h" |
| 12 #include "platform/wtf/PtrUtil.h" |
| 12 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" | 13 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" |
| 13 #include "wtf/PtrUtil.h" | |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 WebServiceWorkerResponseType FetchTypeToWebType( | 19 WebServiceWorkerResponseType FetchTypeToWebType( |
| 20 FetchResponseData::Type fetch_type) { | 20 FetchResponseData::Type fetch_type) { |
| 21 WebServiceWorkerResponseType web_type = kWebServiceWorkerResponseTypeDefault; | 21 WebServiceWorkerResponseType web_type = kWebServiceWorkerResponseTypeDefault; |
| 22 switch (fetch_type) { | 22 switch (fetch_type) { |
| 23 case FetchResponseData::kBasicType: | 23 case FetchResponseData::kBasicType: |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 } | 298 } |
| 299 } | 299 } |
| 300 | 300 |
| 301 DEFINE_TRACE(FetchResponseData) { | 301 DEFINE_TRACE(FetchResponseData) { |
| 302 visitor->Trace(header_list_); | 302 visitor->Trace(header_list_); |
| 303 visitor->Trace(internal_response_); | 303 visitor->Trace(internal_response_); |
| 304 visitor->Trace(buffer_); | 304 visitor->Trace(buffer_); |
| 305 } | 305 } |
| 306 | 306 |
| 307 } // namespace blink | 307 } // namespace blink |
| OLD | NEW |