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

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

Issue 8635017: Add a referrer class to be used in the browser process whenever passing around referrsr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 1 month 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
« content/public/common/referrer.h ('K') | « content/public/common/referrer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/referrer.cc
diff --git a/content/public/common/referrer.cc b/content/public/common/referrer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..23e21ceeda601effae162f6c99cf2c79dde98e8e
--- /dev/null
+++ b/content/public/common/referrer.cc
@@ -0,0 +1,21 @@
+// 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.
+
+#include "content/public/common/referrer.h"
+
+using WebKit::WebReferrerPolicy;
+
+namespace content {
+
+Referrer::Referrer(const GURL& url,
+ WebReferrerPolicy policy)
+ : url(url),
+ policy(policy) {
+}
+
+Referrer::Referrer()
+ : policy(WebKit::WebReferrerPolicyDefault) {
+}
+
+} // namespace
« content/public/common/referrer.h ('K') | « content/public/common/referrer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698