Index: content/public/common/referrer.h |
diff --git a/content/public/common/referrer.h b/content/public/common/referrer.h |
index b10bfd6c28e6cd96f6e44a5a2070904693fae979..3c5bfe46208677b8bf8d893373ae4c7342d55a4e 100644 |
--- a/content/public/common/referrer.h |
+++ b/content/public/common/referrer.h |
@@ -14,13 +14,17 @@ namespace content { |
// This struct holds a referrer URL, as well as the referrer policy to be |
// applied to this URL. When passing around referrers that will eventually end |
// up being used for URL requests, always use this struct. |
-struct CONTENT_EXPORT Referrer { |
+class CONTENT_EXPORT Referrer { |
+ public: |
Referrer(const GURL& url, blink::WebReferrerPolicy policy) : url(url), |
- policy(policy) { |
+ policy(policy) { |
} |
Referrer() : policy(blink::WebReferrerPolicyDefault) { |
} |
+ GURL ReferrerHeaderUrlForNavigation(const GURL& destination) const; |
+ |
+ // TODO(kkimlabs): Make private, make getter & setter, and rename, e.g., url_. |
Kibeom Kim (inactive)
2014/04/30 00:58:56
I'll do this for the next patchset if making Refer
|
GURL url; |
blink::WebReferrerPolicy policy; |
}; |