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

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

Issue 2682313002: Introduce NavigationSimulator to use in unit tests (Closed)
Patch Set: Addressed comments Created 3 years, 10 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/public/common/referrer.cc » ('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
index 75ae4b37d9839cb500cf4a1364dab08d40f657a4..68c35f44d993e56e04763ec989f23ee06df9c4e9 100644
--- a/content/public/common/referrer.h
+++ b/content/public/common/referrer.h
@@ -7,13 +7,10 @@
#include "base/logging.h"
#include "content/common/content_export.h"
+#include "net/url_request/url_request.h"
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
#include "url/gurl.h"
-namespace net {
-class URLRequest;
-}
-
namespace content {
// This struct holds a referrer URL, as well as the referrer policy to be
@@ -32,6 +29,9 @@ struct CONTENT_EXPORT Referrer {
static void SetReferrerForRequest(net::URLRequest* request,
const Referrer& referrer);
+
+ static net::URLRequest::ReferrerPolicy ReferrerPolicyForUrlRequest(
+ const Referrer& referrer);
};
} // namespace content
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/public/common/referrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698