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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js

Issue 2603593002: Expose per-request referrer policy in devtools (Closed)
Patch Set: updates Created 3 years, 12 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 | « third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
index 4dbbcc9b8a5162f39d6c7b8b734cbeaf445ac20f..73c7946d004ad03a1637b7d5991553b5fb0cfdb8 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
@@ -85,6 +85,9 @@ SDK.NetworkRequest = class extends SDK.SDKObject {
this._remoteAddress = '';
+ /** @type {?Protocol.Network.RequestReferrerPolicy} */
+ this._referrerPolicy = null;
+
/** @type {!Protocol.Security.SecurityState} */
this._securityState = Protocol.Security.SecurityState.Unknown;
/** @type {?Protocol.Network.SecurityDetails} */
@@ -184,6 +187,20 @@ SDK.NetworkRequest = class extends SDK.SDKObject {
}
/**
+ * @param {!Protocol.Network.RequestReferrerPolicy} referrerPolicy
+ */
+ setReferrerPolicy(referrerPolicy) {
+ this._referrerPolicy = referrerPolicy;
+ }
+
+ /**
+ * @return {?Protocol.Network.RequestReferrerPolicy}
+ */
+ referrerPolicy() {
+ return this._referrerPolicy;
+ }
+
+ /**
* @return {!Protocol.Security.SecurityState}
*/
securityState() {
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698