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

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

Issue 2643613002: Reduce the perf overhead of our dangling markup experiments. (Closed)
Patch Set: Rebase. Created 3 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 if (cur < end && spec[cur] == '&') 683 if (cur < end && spec[cur] == '&')
684 cur++; 684 cur++;
685 685
686 // Save the new query 686 // Save the new query
687 *query = MakeRange(cur, end); 687 *query = MakeRange(cur, end);
688 return true; 688 return true;
689 } 689 }
690 690
691 } // namespace 691 } // namespace
692 692
693 Parsed::Parsed() : inner_parsed_(NULL) { 693 Parsed::Parsed() : whitespace_removed(false), inner_parsed_(NULL) {}
694 }
695 694
696 Parsed::Parsed(const Parsed& other) : 695 Parsed::Parsed(const Parsed& other) :
697 scheme(other.scheme), 696 scheme(other.scheme),
698 username(other.username), 697 username(other.username),
699 password(other.password), 698 password(other.password),
700 host(other.host), 699 host(other.host),
701 port(other.port), 700 port(other.port),
702 path(other.path), 701 path(other.path),
703 query(other.query), 702 query(other.query),
704 ref(other.ref), 703 ref(other.ref),
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 } 934 }
936 935
937 void ParseAfterScheme(const base::char16* spec, 936 void ParseAfterScheme(const base::char16* spec,
938 int spec_len, 937 int spec_len,
939 int after_scheme, 938 int after_scheme,
940 Parsed* parsed) { 939 Parsed* parsed) {
941 DoParseAfterScheme(spec, spec_len, after_scheme, parsed); 940 DoParseAfterScheme(spec, spec_len, after_scheme, parsed);
942 } 941 }
943 942
944 } // namespace url 943 } // namespace url
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698