Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp

Issue 1844053003: CREDENTIAL: Rework the integration with Fetch (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: horo@ Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "core/dom/DOMArrayBuffer.h" 7 #include "core/dom/DOMArrayBuffer.h"
8 #include "core/fetch/CrossOriginAccessControl.h" 8 #include "core/fetch/CrossOriginAccessControl.h"
9 #include "core/fetch/FetchUtils.h" 9 #include "core/fetch/FetchUtils.h"
10 #include "modules/fetch/BodyStreamBuffer.h" 10 #include "modules/fetch/BodyStreamBuffer.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 FetchResponseData* FetchResponseData::createOpaqueRedirectFilteredResponse() 126 FetchResponseData* FetchResponseData::createOpaqueRedirectFilteredResponse()
127 { 127 {
128 // "An opaque-redirect filtered response is a filtered response whose type 128 // "An opaque-redirect filtered response is a filtered response whose type
129 // is |opaqueredirect|, status is 0, status message is the empty byte 129 // is |opaqueredirect|, status is 0, status message is the empty byte
130 // sequence, header list is the empty list, body is null, and cache state is 130 // sequence, header list is the empty list, body is null, and cache state is
131 // |none|. 131 // |none|.
132 FetchResponseData* response = new FetchResponseData(OpaqueRedirectType, 0, " "); 132 FetchResponseData* response = new FetchResponseData(OpaqueRedirectType, 0, " ");
133 response->m_internalResponse = this; 133 response->m_internalResponse = this;
134 response->m_url = this->m_url;
134 return response; 135 return response;
135 } 136 }
136 137
137 String FetchResponseData::mimeType() const 138 String FetchResponseData::mimeType() const
138 { 139 {
139 return m_mimeType; 140 return m_mimeType;
140 } 141 }
141 142
142 BodyStreamBuffer* FetchResponseData::internalBuffer() const 143 BodyStreamBuffer* FetchResponseData::internalBuffer() const
143 { 144 {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 247 }
247 248
248 DEFINE_TRACE(FetchResponseData) 249 DEFINE_TRACE(FetchResponseData)
249 { 250 {
250 visitor->trace(m_headerList); 251 visitor->trace(m_headerList);
251 visitor->trace(m_internalResponse); 252 visitor->trace(m_internalResponse);
252 visitor->trace(m_buffer); 253 visitor->trace(m_buffer);
253 } 254 }
254 255
255 } // namespace blink 256 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698