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

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

Issue 8774050: Pass along the referrer policy (renderer side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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
« no previous file with comments | « content/public/common/frame_navigate_params.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/referrer.h
diff --git a/content/public/common/referrer.h b/content/public/common/referrer.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5a3639922d60512a730d9975d0bdcf65ea46ea6
--- /dev/null
+++ b/content/public/common/referrer.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_REFERRER_H_
+#define CONTENT_PUBLIC_COMMON_REFERRER_H_
+#pragma once
+
+#include "content/common/content_export.h"
+#include "googleurl/src/gurl.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h"
+
+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 {
+ Referrer(const GURL& url, WebKit::WebReferrerPolicy policy) : url(url),
+ policy(policy) {
+ }
+ Referrer() : policy(WebKit::WebReferrerPolicyDefault) {
+ }
+
+ GURL url;
+ WebKit::WebReferrerPolicy policy;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_REFERRER_H_
« no previous file with comments | « content/public/common/frame_navigate_params.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698