summaryrefslogtreecommitdiffstats
path: root/net/base/url_util.h
diff options
context:
space:
mode:
authortfarina <tfarina@chromium.org>2015-10-11 13:19:03 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-11 20:21:03 +0000
commit77021d638be7c0e7816b315c9dc57b3dfd6bc4c3 (patch)
tree7d272e5502ee7e05124058f3a4bfd98602e2d7bc /net/base/url_util.h
parentc83cf04fd5a86b9e3190a22d3e78fe73c0ea280c (diff)
downloadchromium_src-77021d638be7c0e7816b315c9dc57b3dfd6bc4c3.zip
chromium_src-77021d638be7c0e7816b315c9dc57b3dfd6bc4c3.tar.gz
chromium_src-77021d638be7c0e7816b315c9dc57b3dfd6bc4c3.tar.bz2
net: Move dns_util.* into dns directory.
It is DNS specific so it makes more sense to have it in net/dns rather than in the generic net/base directory. BUG=None R=eroman@chromium.org,mmenke@chromium.org TBR=gene@chromium.org,bauerb@chromium.org NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1394233003 Cr-Commit-Position: refs/heads/master@{#353475}
Diffstat (limited to 'net/base/url_util.h')
-rw-r--r--net/base/url_util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/base/url_util.h b/net/base/url_util.h
index 533c908..15502e4 100644
--- a/net/base/url_util.h
+++ b/net/base/url_util.h
@@ -7,7 +7,7 @@
#include <string>
-#include "base/compiler_specific.h"
+#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
#include "url/third_party/mozilla/url_parse.h"
@@ -77,6 +77,10 @@ NET_EXPORT bool GetValueForKeyInQuery(const GURL& url,
const std::string& search_key,
std::string* out_value);
+
+// Returns the hostname by trimming the ending dot, if one exists.
+NET_EXPORT std::string TrimEndingDot(const base::StringPiece& host);
+
} // namespace net
#endif // NET_BASE_URL_UTIL_H_