OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ | 5 #ifndef URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ |
6 #define URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ | 6 #define URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "url/url_export.h" | 9 #include "url/url_export.h" |
10 | 10 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Length will be -1 if there is no hash sign, or 0 if there is one but | 170 // Length will be -1 if there is no hash sign, or 0 if there is one but |
171 // nothing follows it. | 171 // nothing follows it. |
172 Component ref; | 172 Component ref; |
173 | 173 |
174 // The URL spec from the character after the scheme: until the end of the | 174 // The URL spec from the character after the scheme: until the end of the |
175 // URL, regardless of the scheme. This is mostly useful for 'opaque' non- | 175 // URL, regardless of the scheme. This is mostly useful for 'opaque' non- |
176 // hierarchical schemes like data: and javascript: as a convient way to get | 176 // hierarchical schemes like data: and javascript: as a convient way to get |
177 // the string with the scheme stripped off. | 177 // the string with the scheme stripped off. |
178 Component GetContent() const; | 178 Component GetContent() const; |
179 | 179 |
180 // True if whitespace was removed from the URL during parsing. | 180 // True if the URL's source contained a raw `<` character, and whitespace was |
181 bool whitespace_removed; | 181 // removed from the URL during parsing |
| 182 // |
| 183 // TODO(mkwst): Link this to something in a spec if |
| 184 // https://github.com/whatwg/url/pull/284 lands. |
| 185 bool potentially_dangling_markup; |
182 | 186 |
183 // This is used for nested URL types, currently only filesystem. If you | 187 // This is used for nested URL types, currently only filesystem. If you |
184 // parse a filesystem URL, the resulting Parsed will have a nested | 188 // parse a filesystem URL, the resulting Parsed will have a nested |
185 // inner_parsed_ to hold the parsed inner URL's component information. | 189 // inner_parsed_ to hold the parsed inner URL's component information. |
186 // For all other url types [including the inner URL], it will be NULL. | 190 // For all other url types [including the inner URL], it will be NULL. |
187 Parsed* inner_parsed() const { | 191 Parsed* inner_parsed() const { |
188 return inner_parsed_; | 192 return inner_parsed_; |
189 } | 193 } |
190 | 194 |
191 void set_inner_parsed(const Parsed& inner_parsed) { | 195 void set_inner_parsed(const Parsed& inner_parsed) { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 Component* key, | 363 Component* key, |
360 Component* value); | 364 Component* value); |
361 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url, | 365 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url, |
362 Component* query, | 366 Component* query, |
363 Component* key, | 367 Component* key, |
364 Component* value); | 368 Component* value); |
365 | 369 |
366 } // namespace url | 370 } // namespace url |
367 | 371 |
368 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ | 372 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ |
OLD | NEW |