diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-22 00:09:23 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-22 00:09:23 +0000 |
commit | 0318f92ba7c54fc5ef6397c6d58250fea95c7196 (patch) | |
tree | 5bcef0db3fb7334c5a4fd6d25444a2b86c17ec5e /url/url_canon_mailtourl.cc | |
parent | 7b691d3fee8d10f130007016caefa0c6c6cd0681 (diff) | |
download | chromium_src-0318f92ba7c54fc5ef6397c6d58250fea95c7196.zip chromium_src-0318f92ba7c54fc5ef6397c6d58250fea95c7196.tar.gz chromium_src-0318f92ba7c54fc5ef6397c6d58250fea95c7196.tar.bz2 |
Renamed namespaces in src/url.
url_util -> url
url_parse -> url
url_canon -> url
BUG=364747
R=brettw@chromium.org, thestig@chromium.org, willchan@chromium.org
Review URL: https://codereview.chromium.org/242463002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265120 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/url_canon_mailtourl.cc')
-rw-r--r-- | url/url_canon_mailtourl.cc | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/url/url_canon_mailtourl.cc b/url/url_canon_mailtourl.cc index 7d9d18a..7c48b95 100644 --- a/url/url_canon_mailtourl.cc +++ b/url/url_canon_mailtourl.cc @@ -9,23 +9,21 @@ #include "url/url_file.h" #include "url/url_parse_internal.h" -namespace url_canon { +namespace url { namespace { - -template<typename CHAR, typename UCHAR> +template <typename CHAR, typename UCHAR> bool DoCanonicalizeMailtoURL(const URLComponentSource<CHAR>& source, - const url_parse::Parsed& parsed, + const Parsed& parsed, CanonOutput* output, - url_parse::Parsed* new_parsed) { - + Parsed* new_parsed) { // mailto: only uses {scheme, path, query} -- clear the rest. - new_parsed->username = url_parse::Component(); - new_parsed->password = url_parse::Component(); - new_parsed->host = url_parse::Component(); - new_parsed->port = url_parse::Component(); - new_parsed->ref = url_parse::Component(); + new_parsed->username = Component(); + new_parsed->password = Component(); + new_parsed->host = Component(); + new_parsed->port = Component(); + new_parsed->ref = Component(); // Scheme (known, so we don't bother running it through the more // complicated scheme canonicalizer). @@ -67,46 +65,46 @@ bool DoCanonicalizeMailtoURL(const URLComponentSource<CHAR>& source, } // namespace bool CanonicalizeMailtoURL(const char* spec, - int spec_len, - const url_parse::Parsed& parsed, - CanonOutput* output, - url_parse::Parsed* new_parsed) { + int spec_len, + const Parsed& parsed, + CanonOutput* output, + Parsed* new_parsed) { return DoCanonicalizeMailtoURL<char, unsigned char>( URLComponentSource<char>(spec), parsed, output, new_parsed); } bool CanonicalizeMailtoURL(const base::char16* spec, int spec_len, - const url_parse::Parsed& parsed, + const Parsed& parsed, CanonOutput* output, - url_parse::Parsed* new_parsed) { + Parsed* new_parsed) { return DoCanonicalizeMailtoURL<base::char16, base::char16>( URLComponentSource<base::char16>(spec), parsed, output, new_parsed); } bool ReplaceMailtoURL(const char* base, - const url_parse::Parsed& base_parsed, + const Parsed& base_parsed, const Replacements<char>& replacements, CanonOutput* output, - url_parse::Parsed* new_parsed) { + Parsed* new_parsed) { URLComponentSource<char> source(base); - url_parse::Parsed parsed(base_parsed); + Parsed parsed(base_parsed); SetupOverrideComponents(base, replacements, &source, &parsed); return DoCanonicalizeMailtoURL<char, unsigned char>( source, parsed, output, new_parsed); } bool ReplaceMailtoURL(const char* base, - const url_parse::Parsed& base_parsed, + const Parsed& base_parsed, const Replacements<base::char16>& replacements, CanonOutput* output, - url_parse::Parsed* new_parsed) { + Parsed* new_parsed) { RawCanonOutput<1024> utf8; URLComponentSource<char> source(base); - url_parse::Parsed parsed(base_parsed); + Parsed parsed(base_parsed); SetupUTF16OverrideComponents(base, replacements, &utf8, &source, &parsed); return DoCanonicalizeMailtoURL<char, unsigned char>( source, parsed, output, new_parsed); } -} // namespace url_canon +} // namespace url |