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

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

Issue 1324073003: DevTools: expose initial priority of a resource request in Network.requestWillBeSent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/devtools/front_end/sdk/NetworkManager.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/NetworkRequest.js
diff --git a/Source/devtools/front_end/sdk/NetworkRequest.js b/Source/devtools/front_end/sdk/NetworkRequest.js
index e59c14fc2a92043dc6e59aed6b41558bd7135a79..ab52b6af9c9213458e39d5a9c5b7abb166c0320c 100644
--- a/Source/devtools/front_end/sdk/NetworkRequest.js
+++ b/Source/devtools/front_end/sdk/NetworkRequest.js
@@ -61,6 +61,9 @@ WebInspector.NetworkRequest = function(target, requestId, url, documentURL, fram
this.requestTime = 0;
this.protocol = "";
+ /** @type {?NetworkAgent.ResourcePriority} */
+ this._initialPriority = null;
+
/** @type {!WebInspector.ResourceType} */
this._resourceType = WebInspector.resourceTypes.Other;
this._contentEncoded = false;
@@ -935,6 +938,22 @@ WebInspector.NetworkRequest.prototype = {
},
/**
+ * @param {!NetworkAgent.ResourcePriority} priority
+ */
+ setInitialPriority: function(priority)
+ {
+ this._initialPriority = priority;
+ },
+
+ /**
+ * @return {?NetworkAgent.ResourcePriority}
+ */
+ initialPriority: function()
+ {
+ return this._initialPriority;
+ },
+
+ /**
* @param {!Element} image
*/
populateImageSource: function(image)
« no previous file with comments | « Source/devtools/front_end/sdk/NetworkManager.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698