OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 this._requestId = requestId; | 47 this._requestId = requestId; |
48 this.url = url; | 48 this.url = url; |
49 this._documentURL = documentURL; | 49 this._documentURL = documentURL; |
50 this._frameId = frameId; | 50 this._frameId = frameId; |
51 this._loaderId = loaderId; | 51 this._loaderId = loaderId; |
52 /** @type {?NetworkAgent.Initiator} */ | 52 /** @type {?NetworkAgent.Initiator} */ |
53 this._initiator = initiator; | 53 this._initiator = initiator; |
54 this._issueTime = -1; | 54 this._issueTime = -1; |
55 this._startTime = -1; | 55 this._startTime = -1; |
56 this._endTime = -1; | 56 this._endTime = -1; |
| 57 /** @type {!NetworkAgent.BlockedReason|undefined} */ |
| 58 this._blockedReason = undefined; |
57 | 59 |
58 this.statusCode = 0; | 60 this.statusCode = 0; |
59 this.statusText = ""; | 61 this.statusText = ""; |
60 this.requestMethod = ""; | 62 this.requestMethod = ""; |
61 this.requestTime = 0; | 63 this.requestTime = 0; |
62 this.protocol = ""; | 64 this.protocol = ""; |
63 this.mixedContentType = ""; | 65 this.mixedContentType = ""; |
64 | 66 |
65 /** @type {?NetworkAgent.ResourcePriority} */ | 67 /** @type {?NetworkAgent.ResourcePriority} */ |
66 this._initialPriority = null; | 68 this._initialPriority = null; |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 { | 385 { |
384 return this._canceled; | 386 return this._canceled; |
385 }, | 387 }, |
386 | 388 |
387 set canceled(x) | 389 set canceled(x) |
388 { | 390 { |
389 this._canceled = x; | 391 this._canceled = x; |
390 }, | 392 }, |
391 | 393 |
392 /** | 394 /** |
| 395 * @return {!NetworkAgent.BlockedReason|undefined} |
| 396 */ |
| 397 blockedReason: function() |
| 398 { |
| 399 return this._blockedReason; |
| 400 }, |
| 401 |
| 402 /** |
| 403 * @param {!NetworkAgent.BlockedReason} reason |
| 404 */ |
| 405 setBlockedReason: function(reason) |
| 406 { |
| 407 this._blockedReason = reason; |
| 408 }, |
| 409 |
| 410 /** |
393 * @return {boolean} | 411 * @return {boolean} |
394 */ | 412 */ |
395 get blocked() | 413 wasBlocked: function() |
396 { | 414 { |
397 return this._blocked; | 415 return !!this._blockedReason; |
398 }, | |
399 | |
400 set blocked(x) | |
401 { | |
402 this._blocked = x; | |
403 }, | 416 }, |
404 | 417 |
405 /** | 418 /** |
406 * @return {boolean} | 419 * @return {boolean} |
407 */ | 420 */ |
408 cached: function() | 421 cached: function() |
409 { | 422 { |
410 return (!!this._fromMemoryCache || !!this._fromDiskCache) && !this._tran
sferSize; | 423 return (!!this._fromMemoryCache || !!this._fromDiskCache) && !this._tran
sferSize; |
411 }, | 424 }, |
412 | 425 |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); | 1144 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); |
1132 }, | 1145 }, |
1133 | 1146 |
1134 replayXHR: function() | 1147 replayXHR: function() |
1135 { | 1148 { |
1136 this.target().networkAgent().replayXHR(this.requestId); | 1149 this.target().networkAgent().replayXHR(this.requestId); |
1137 }, | 1150 }, |
1138 | 1151 |
1139 __proto__: WebInspector.SDKObject.prototype | 1152 __proto__: WebInspector.SDKObject.prototype |
1140 } | 1153 } |
OLD | NEW |