| 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 618f878b080547bce5b87b6417de40cfca2dd7c2..ac46d834ad5a9509eae3114af6b5d9b3b6a08fbf 100644
|
| --- a/Source/devtools/front_end/sdk/NetworkRequest.js
|
| +++ b/Source/devtools/front_end/sdk/NetworkRequest.js
|
| @@ -54,6 +54,8 @@ WebInspector.NetworkRequest = function(target, requestId, url, documentURL, fram
|
| this._issueTime = -1;
|
| this._startTime = -1;
|
| this._endTime = -1;
|
| + /** @type {!NetworkAgent.BlockedReason|undefined} */
|
| + this._blockedReason = undefined;
|
|
|
| this.statusCode = 0;
|
| this.statusText = "";
|
| @@ -390,16 +392,27 @@ WebInspector.NetworkRequest.prototype = {
|
| },
|
|
|
| /**
|
| - * @return {boolean}
|
| + * @return {!NetworkAgent.BlockedReason|undefined}
|
| */
|
| - get blocked()
|
| + blockedReason: function()
|
| {
|
| - return this._blocked;
|
| + return this._blockedReason;
|
| },
|
|
|
| - set blocked(x)
|
| + /**
|
| + * @param {!NetworkAgent.BlockedReason} reason
|
| + */
|
| + setBlockedReason: function(reason)
|
| + {
|
| + this._blockedReason = reason;
|
| + },
|
| +
|
| + /**
|
| + * @return {boolean}
|
| + */
|
| + wasBlocked: function()
|
| {
|
| - this._blocked = x;
|
| + return !!this._blockedReason;
|
| },
|
|
|
| /**
|
|
|