Chromium Code Reviews| 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 "FetchRequestData.h" | 6 #include "FetchRequestData.h" |
| 7 | 7 |
| 8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
| 9 #include "core/fetch/ResourceLoaderOptions.h" | 9 #include "core/fetch/ResourceLoaderOptions.h" |
| 10 #include "core/loader/ThreadableLoader.h" | 10 #include "core/loader/ThreadableLoader.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 , m_headerList(FetchHeaderList::create()) | 61 , m_headerList(FetchHeaderList::create()) |
| 62 , m_unsafeRequestFlag(false) | 62 , m_unsafeRequestFlag(false) |
| 63 , m_context(WebURLRequest::RequestContextUnspecified) | 63 , m_context(WebURLRequest::RequestContextUnspecified) |
| 64 , m_sameOriginDataURLFlag(false) | 64 , m_sameOriginDataURLFlag(false) |
| 65 , m_mode(WebURLRequest::FetchRequestModeNoCORS) | 65 , m_mode(WebURLRequest::FetchRequestModeNoCORS) |
| 66 , m_credentials(WebURLRequest::FetchCredentialsModeOmit) | 66 , m_credentials(WebURLRequest::FetchCredentialsModeOmit) |
| 67 , m_responseTainting(BasicTainting) | 67 , m_responseTainting(BasicTainting) |
| 68 { | 68 { |
| 69 } | 69 } |
| 70 | 70 |
| 71 String FetchRequestData::contentType() const | |
|
yhirano
2014/12/12 12:42:33
Is this function's meaning clear?
This function is
horo
2014/12/15 02:12:24
Removed and I introduced contentTypeForBuffer to B
| |
| 72 { | |
| 73 if (m_blobDataHandle) | |
| 74 return m_blobDataHandle->type(); | |
| 75 return ""; | |
|
yhirano
2014/12/12 12:42:32
return String() is more efficient.
horo
2014/12/15 02:12:24
Done in Request::contentTypeForBuffer().
| |
| 76 } | |
| 77 | |
| 71 void FetchRequestData::trace(Visitor* visitor) | 78 void FetchRequestData::trace(Visitor* visitor) |
| 72 { | 79 { |
| 73 visitor->trace(m_headerList); | 80 visitor->trace(m_headerList); |
| 74 } | 81 } |
| 75 | 82 |
| 76 } // namespace blink | 83 } // namespace blink |
| OLD | NEW |