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

Unified Diff: content/renderer/internal_document_state_data.h

Issue 135973009: Don't try to guess the referrer policy, but use the one associated with the request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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/renderer/internal_document_state_data.h
diff --git a/content/renderer/internal_document_state_data.h b/content/renderer/internal_document_state_data.h
index 00d1798f508b1cc47528f3a5407449708c34cc2c..def89de18109e913dd4607f5abf83c2beaa0496e 100644
--- a/content/renderer/internal_document_state_data.h
+++ b/content/renderer/internal_document_state_data.h
@@ -9,7 +9,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/supports_user_data.h"
-#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "url/gurl.h"
@@ -103,22 +102,6 @@ class InternalDocumentStateData : public base::SupportsUserData::Data {
return cache_policy_override_set_;
}
- // Sets the referrer policy to use. This is only used for browser initiated
- // navigations, otherwise, the referrer policy is defined by the frame's
- // document.
- blink::WebReferrerPolicy referrer_policy() const {
- return referrer_policy_;
- }
- void set_referrer_policy(blink::WebReferrerPolicy referrer_policy) {
- referrer_policy_ = referrer_policy;
- referrer_policy_set_ = true;
- }
- void clear_referrer_policy() {
- referrer_policy_ = blink::WebReferrerPolicyDefault;
- referrer_policy_set_ = false;
- }
- bool is_referrer_policy_set() const { return referrer_policy_set_; }
-
protected:
virtual ~InternalDocumentStateData();
@@ -133,8 +116,6 @@ class InternalDocumentStateData : public base::SupportsUserData::Data {
bool must_reset_scroll_and_scale_state_;
bool cache_policy_override_set_;
blink::WebURLRequest::CachePolicy cache_policy_override_;
- bool referrer_policy_set_;
- blink::WebReferrerPolicy referrer_policy_;
DISALLOW_COPY_AND_ASSIGN(InternalDocumentStateData);
};
« no previous file with comments | « content/renderer/fetchers/resource_fetcher_impl.cc ('k') | content/renderer/internal_document_state_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698