summaryrefslogtreecommitdiffstats
path: root/net/base/escape.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-06 14:34:29 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-06 14:34:29 +0000
commitc83d7d18704dff81e58c93b92647fb6600424e74 (patch)
tree340f9ba8ae94ae757a79ac956ccba1e06da26f57 /net/base/escape.h
parent0b512bd7f686c74777a6c3bccf4ef9eab3aca8a9 (diff)
downloadchromium_src-c83d7d18704dff81e58c93b92647fb6600424e74.zip
chromium_src-c83d7d18704dff81e58c93b92647fb6600424e74.tar.gz
chromium_src-c83d7d18704dff81e58c93b92647fb6600424e74.tar.bz2
net: Move more three Escape() functions into net namespace.
BUG=64263 TEST=None R=willchan@chromium.org Review URL: http://codereview.chromium.org/8479021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108808 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/escape.h')
-rw-r--r--net/base/escape.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/net/base/escape.h b/net/base/escape.h
index 45f2ddf..0d2684a 100644
--- a/net/base/escape.h
+++ b/net/base/escape.h
@@ -26,19 +26,6 @@ NET_EXPORT std::string EscapePath(const std::string& path);
NET_EXPORT std::string EscapeUrlEncodedData(const std::string& path,
bool use_plus);
-// Escape all non-ASCII input.
-NET_EXPORT std::string EscapeNonASCII(const std::string& input);
-
-// Escapes characters in text suitable for use as an external protocol handler
-// command.
-// We %XX everything except alphanumerics and %-_.!~*'() and the restricted
-// chracters (;/?:@&=+$,).
-NET_EXPORT std::string EscapeExternalHandlerValue(const std::string& text);
-
-// Append the given character to the output string, escaping the character if
-// the character would be interpretted as an HTML delimiter.
-NET_EXPORT void AppendEscapedCharForHTML(char c, std::string* output);
-
// Unescaping ------------------------------------------------------------------
class UnescapeRule {
@@ -83,6 +70,19 @@ class UnescapeRule {
namespace net {
+// Escape all non-ASCII input.
+NET_EXPORT std::string EscapeNonASCII(const std::string& input);
+
+// Escapes characters in text suitable for use as an external protocol handler
+// command.
+// We %XX everything except alphanumerics and %-_.!~*'() and the restricted
+// chracters (;/?:@&=+$,).
+NET_EXPORT std::string EscapeExternalHandlerValue(const std::string& text);
+
+// Append the given character to the output string, escaping the character if
+// the character would be interpretted as an HTML delimiter.
+NET_EXPORT void AppendEscapedCharForHTML(char c, std::string* output);
+
// Escape chars that might cause this text to be interpretted as HTML tags.
NET_EXPORT std::string EscapeForHTML(const std::string& text);
NET_EXPORT string16 EscapeForHTML(const string16& text);