| 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. |
| 181 bool whitespace_removed; |
| 182 |
| 180 // This is used for nested URL types, currently only filesystem. If you | 183 // This is used for nested URL types, currently only filesystem. If you |
| 181 // parse a filesystem URL, the resulting Parsed will have a nested | 184 // parse a filesystem URL, the resulting Parsed will have a nested |
| 182 // inner_parsed_ to hold the parsed inner URL's component information. | 185 // inner_parsed_ to hold the parsed inner URL's component information. |
| 183 // For all other url types [including the inner URL], it will be NULL. | 186 // For all other url types [including the inner URL], it will be NULL. |
| 184 Parsed* inner_parsed() const { | 187 Parsed* inner_parsed() const { |
| 185 return inner_parsed_; | 188 return inner_parsed_; |
| 186 } | 189 } |
| 187 | 190 |
| 188 void set_inner_parsed(const Parsed& inner_parsed) { | 191 void set_inner_parsed(const Parsed& inner_parsed) { |
| 189 if (!inner_parsed_) | 192 if (!inner_parsed_) |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 Component* key, | 359 Component* key, |
| 357 Component* value); | 360 Component* value); |
| 358 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url, | 361 URL_EXPORT bool ExtractQueryKeyValue(const base::char16* url, |
| 359 Component* query, | 362 Component* query, |
| 360 Component* key, | 363 Component* key, |
| 361 Component* value); | 364 Component* value); |
| 362 | 365 |
| 363 } // namespace url | 366 } // namespace url |
| 364 | 367 |
| 365 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ | 368 #endif // URL_THIRD_PARTY_MOZILLA_URL_PARSE_H_ |
| OLD | NEW |