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

Unified Diff: content/child/npapi/plugin_url_fetcher.h

Issue 736743003: Use content::Referrer to pass around referrers in the plugin code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 6 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
« no previous file with comments | « no previous file | content/child/npapi/plugin_url_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_url_fetcher.h
diff --git a/content/child/npapi/plugin_url_fetcher.h b/content/child/npapi/plugin_url_fetcher.h
index 57eb5a5beba4f9bb18dade46c6f1e558ca511b9e..ace77ff026562b8f8becfe735756abcc0de454d6 100644
--- a/content/child/npapi/plugin_url_fetcher.h
+++ b/content/child/npapi/plugin_url_fetcher.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/child/request_peer.h"
+#include "content/public/common/referrer.h"
#include "url/gurl.h"
namespace content {
@@ -25,7 +26,7 @@ class PluginURLFetcher : public RequestPeer {
const std::string& method,
const char* buf,
unsigned int len,
- const GURL& referrer,
+ const Referrer& referrer,
const std::string& range,
bool notify_redirects,
bool is_plugin_src_load,
@@ -43,7 +44,7 @@ class PluginURLFetcher : public RequestPeer {
void URLRedirectResponse(bool allow);
GURL first_party_for_cookies() { return first_party_for_cookies_; }
- GURL referrer() { return referrer_; }
+ Referrer referrer() { return referrer_; }
int origin_pid() { return origin_pid_; }
int render_frame_id() { return render_frame_id_; }
int render_view_id() { return render_view_id_; }
@@ -72,7 +73,7 @@ class PluginURLFetcher : public RequestPeer {
PluginStreamUrl* plugin_stream_;
GURL url_;
GURL first_party_for_cookies_;
- GURL referrer_;
+ Referrer referrer_;
bool notify_redirects_;
bool is_plugin_src_load_;
int origin_pid_;
« no previous file with comments | « no previous file | content/child/npapi/plugin_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698