summaryrefslogtreecommitdiffstats
path: root/url/gurl.h
diff options
context:
space:
mode:
Diffstat (limited to 'url/gurl.h')
-rw-r--r--url/gurl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/url/gurl.h b/url/gurl.h
index dc88fec25..28897d1 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -195,6 +195,11 @@ class URL_EXPORT GURL {
// will be the empty URL.
GURL GetOrigin() const;
+ // A helper function to return a GURL stripped from the elements that are not
+ // supposed to be sent as HTTP referrer: username, password and ref fragment.
+ // For invalid URLs the original URL will be returned.
+ GURL GetAsReferrer() const;
+
// Returns true if the scheme for the current URL is a known "standard"
// scheme. Standard schemes have an authority and a path section. This
// includes file: and filesystem:, which some callers may want to filter out