summaryrefslogtreecommitdiffstats
path: root/net/base/net_util.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-06 00:45:58 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-06 00:45:58 +0000
commitdf10e1781ce06472e3c381c73a9819e7ffabb6ab (patch)
tree4d37d4c2eb27c670d53eb40b6d51fea318756b8c /net/base/net_util.h
parentbf17d53f37ece3467f78e4fdf7dd5e06d132841d (diff)
downloadchromium_src-df10e1781ce06472e3c381c73a9819e7ffabb6ab.zip
chromium_src-df10e1781ce06472e3c381c73a9819e7ffabb6ab.tar.gz
chromium_src-df10e1781ce06472e3c381c73a9819e7ffabb6ab.tar.bz2
Split GoogleURLTrackerInfoBarDelegate into its own .h/.cc. This will make changes to it a little easier to understand.
As part of this, added a StrippedHost() function to net_util.* to replace the one that used to be in google_url_tracker.cc. BUG=none TEST=none Review URL: https://codereview.chromium.org/11076003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160535 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.h')
-rw-r--r--net/base/net_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h
index 224348b..444a547 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -246,6 +246,9 @@ NET_EXPORT std::string GetDirectoryListingEntry(const string16& name,
// unmodified.
NET_EXPORT string16 StripWWW(const string16& text);
+// Runs |url|'s host through StripWWW(). |url| must be valid.
+NET_EXPORT string16 StripWWWFromHost(const GURL& url);
+
// Generates a filename using the first successful method from the following (in
// order):
//