| OLD | NEW |
| 1 /* Based on nsURLParsers.cc from Mozilla | 1 /* Based on nsURLParsers.cc from Mozilla |
| 2 * ------------------------------------- | 2 * ------------------------------------- |
| 3 * The contents of this file are subject to the Mozilla Public License Version | 3 * The contents of this file are subject to the Mozilla Public License Version |
| 4 * 1.1 (the "License"); you may not use this file except in compliance with | 4 * 1.1 (the "License"); you may not use this file except in compliance with |
| 5 * the License. You may obtain a copy of the License at | 5 * the License. You may obtain a copy of the License at |
| 6 * http://www.mozilla.org/MPL/ | 6 * http://www.mozilla.org/MPL/ |
| 7 * | 7 * |
| 8 * Software distributed under the License is distributed on an "AS IS" basis, | 8 * Software distributed under the License is distributed on an "AS IS" basis, |
| 9 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 9 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 10 * for the specific language governing rights and limitations under the | 10 * for the specific language governing rights and limitations under the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 * decision by deleting the provisions above and replace them with the notice | 30 * decision by deleting the provisions above and replace them with the notice |
| 31 * and other provisions required by the GPL or the LGPL. If you do not delete | 31 * and other provisions required by the GPL or the LGPL. If you do not delete |
| 32 * the provisions above, a recipient may use your version of this file under | 32 * the provisions above, a recipient may use your version of this file under |
| 33 * the terms of any one of the MPL, the GPL or the LGPL. | 33 * the terms of any one of the MPL, the GPL or the LGPL. |
| 34 * | 34 * |
| 35 * ***** END LICENSE BLOCK ***** */ | 35 * ***** END LICENSE BLOCK ***** */ |
| 36 | 36 |
| 37 #include "url/third_party/mozilla/url_parse.h" | 37 #include "url/third_party/mozilla/url_parse.h" |
| 38 | 38 |
| 39 #include <stdlib.h> | 39 #include <stdlib.h> |
| 40 #include <ostream> |
| 40 | 41 |
| 41 #include "base/logging.h" | 42 #include "base/logging.h" |
| 43 #include "url/url_constants.h" |
| 42 #include "url/url_parse_internal.h" | 44 #include "url/url_parse_internal.h" |
| 43 #include "url/url_util.h" | 45 #include "url/url_util.h" |
| 44 #include "url/url_util_internal.h" | 46 #include "url/url_util_internal.h" |
| 45 | 47 |
| 46 namespace url { | 48 namespace url { |
| 47 | 49 |
| 48 namespace { | 50 namespace { |
| 49 | 51 |
| 50 // Returns true if the given character is a valid digit to use in a port. | 52 // Returns true if the given character is a valid digit to use in a port. |
| 51 inline bool IsPortDigit(base::char16 ch) { | 53 inline bool IsPortDigit(base::char16 ch) { |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 } | 927 } |
| 926 | 928 |
| 927 void ParseAfterScheme(const base::char16* spec, | 929 void ParseAfterScheme(const base::char16* spec, |
| 928 int spec_len, | 930 int spec_len, |
| 929 int after_scheme, | 931 int after_scheme, |
| 930 Parsed* parsed) { | 932 Parsed* parsed) { |
| 931 DoParseAfterScheme(spec, spec_len, after_scheme, parsed); | 933 DoParseAfterScheme(spec, spec_len, after_scheme, parsed); |
| 932 } | 934 } |
| 933 | 935 |
| 934 } // namespace url | 936 } // namespace url |
| OLD | NEW |