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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_request_info.h

Issue 8801006: Make the transfer request code path use full referrers (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
Index: content/browser/renderer_host/resource_dispatcher_host_request_info.h
diff --git a/content/browser/renderer_host/resource_dispatcher_host_request_info.h b/content/browser/renderer_host/resource_dispatcher_host_request_info.h
index e5ec4e256441db5ec57abb75b41aa044fec15401..da002c3aa1e237502d2d89f931118d8fb73fae3d 100644
--- a/content/browser/renderer_host/resource_dispatcher_host_request_info.h
+++ b/content/browser/renderer_host/resource_dispatcher_host_request_info.h
@@ -15,6 +15,7 @@
#include "content/public/common/process_type.h"
#include "net/base/load_states.h"
#include "net/url_request/url_request.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h"
#include "webkit/glue/resource_type.h"
class CrossSiteResourceHandler;
@@ -53,6 +54,7 @@ class ResourceDispatcherHostRequestInfo : public net::URLRequest::UserData {
bool is_download,
bool allow_download,
bool has_user_gesture,
+ WebKit::WebReferrerPolicy referrer_policy,
const content::ResourceContext* context);
virtual ~ResourceDispatcherHostRequestInfo();
@@ -183,6 +185,8 @@ class ResourceDispatcherHostRequestInfo : public net::URLRequest::UserData {
}
void set_requested_blob_data(webkit_blob::BlobData* data);
+ WebKit::WebReferrerPolicy referrer_policy() const { return referrer_policy_; }
+
const content::ResourceContext* context() const { return context_; }
private:
@@ -243,6 +247,7 @@ class ResourceDispatcherHostRequestInfo : public net::URLRequest::UserData {
bool waiting_for_upload_progress_ack_;
int memory_cost_;
scoped_refptr<webkit_blob::BlobData> requested_blob_data_;
+ WebKit::WebReferrerPolicy referrer_policy_;
const content::ResourceContext* context_;
// "Private" data accessible only to ResourceDispatcherHost (use the

Powered by Google App Engine
This is Rietveld 408576698