Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: content/public/common/referrer.h

Issue 263563003: Add referrer & load flag support to BitmapFetcher class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove temp comments Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
};

Powered by Google App Engine
This is Rietveld 408576698