OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "core/dom/URLSearchParams.h" | 5 #include "core/dom/URLSearchParams.h" |
6 | 6 |
7 #include "core/dom/DOMURL.h" | 7 #include "core/dom/DOMURL.h" |
8 #include "platform/network/FormDataEncoder.h" | 8 #include "platform/network/FormDataEncoder.h" |
9 #include "platform/weborigin/KURL.h" | 9 #include "platform/weborigin/KURL.h" |
10 #include "wtf/text/TextEncoding.h" | 10 #include "wtf/text/TextEncoding.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 DCHECK(searchParams); | 63 DCHECK(searchParams); |
64 m_params = searchParams->m_params; | 64 m_params = searchParams->m_params; |
65 } | 65 } |
66 | 66 |
67 URLSearchParams::~URLSearchParams() {} | 67 URLSearchParams::~URLSearchParams() {} |
68 | 68 |
69 DEFINE_TRACE(URLSearchParams) { | 69 DEFINE_TRACE(URLSearchParams) { |
70 visitor->trace(m_urlObject); | 70 visitor->trace(m_urlObject); |
71 } | 71 } |
72 | 72 |
73 #if ENABLE(ASSERT) | 73 #if DCHECK_IS_ON() |
74 DOMURL* URLSearchParams::urlObject() const { | 74 DOMURL* URLSearchParams::urlObject() const { |
75 return m_urlObject; | 75 return m_urlObject; |
76 } | 76 } |
77 #endif | 77 #endif |
78 | 78 |
79 void URLSearchParams::runUpdateSteps() { | 79 void URLSearchParams::runUpdateSteps() { |
80 if (!m_urlObject) | 80 if (!m_urlObject) |
81 return; | 81 return; |
82 | 82 |
83 if (m_urlObject->isInUpdate()) | 83 if (m_urlObject->isInUpdate()) |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 return EncodedFormData::create(encodedData.data(), encodedData.size()); | 202 return EncodedFormData::create(encodedData.data(), encodedData.size()); |
203 } | 203 } |
204 | 204 |
205 PairIterable<String, String>::IterationSource* URLSearchParams::startIteration( | 205 PairIterable<String, String>::IterationSource* URLSearchParams::startIteration( |
206 ScriptState*, | 206 ScriptState*, |
207 ExceptionState&) { | 207 ExceptionState&) { |
208 return new URLSearchParamsIterationSource(m_params); | 208 return new URLSearchParamsIterationSource(m_params); |
209 } | 209 } |
210 | 210 |
211 } // namespace blink | 211 } // namespace blink |
OLD | NEW |