Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: url/third_party/mozilla/url_parse.cc

Issue 1561693003: IWYU fixes for url/... Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added IWYU-pragma-keep in a few places. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698