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 | 65 |
64 /** @type {!WebInspector.ResourceType} */ | 66 /** @type {!WebInspector.ResourceType} */ |
65 this._resourceType = WebInspector.resourceTypes.Other; | 67 this._resourceType = WebInspector.resourceTypes.Other; |
66 this._contentEncoded = false; | 68 this._contentEncoded = false; |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 { | 381 { |
380 return this._canceled; | 382 return this._canceled; |
381 }, | 383 }, |
382 | 384 |
383 set canceled(x) | 385 set canceled(x) |
384 { | 386 { |
385 this._canceled = x; | 387 this._canceled = x; |
386 }, | 388 }, |
387 | 389 |
388 /** | 390 /** |
| 391 * @return {!NetworkAgent.BlockedReason|undefined} |
| 392 */ |
| 393 blockedReason: function() |
| 394 { |
| 395 return this._blockedReason; |
| 396 }, |
| 397 |
| 398 /** |
| 399 * @param {!NetworkAgent.BlockedReason} reason |
| 400 */ |
| 401 setBlockedReason: function(reason) |
| 402 { |
| 403 this._blockedReason = reason; |
| 404 }, |
| 405 |
| 406 /** |
389 * @return {boolean} | 407 * @return {boolean} |
390 */ | 408 */ |
391 get blocked() | 409 wasBlocked: function() |
392 { | 410 { |
393 return this._blocked; | 411 return !!this._blockedReason; |
394 }, | |
395 | |
396 set blocked(x) | |
397 { | |
398 this._blocked = x; | |
399 }, | 412 }, |
400 | 413 |
401 /** | 414 /** |
402 * @return {boolean} | 415 * @return {boolean} |
403 */ | 416 */ |
404 cached: function() | 417 cached: function() |
405 { | 418 { |
406 return (!!this._fromMemoryCache || !!this._fromDiskCache) && !this._tran
sferSize; | 419 return (!!this._fromMemoryCache || !!this._fromDiskCache) && !this._tran
sferSize; |
407 }, | 420 }, |
408 | 421 |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); | 1124 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo
urceMessageAdded, message); |
1112 }, | 1125 }, |
1113 | 1126 |
1114 replayXHR: function() | 1127 replayXHR: function() |
1115 { | 1128 { |
1116 this.target().networkAgent().replayXHR(this.requestId); | 1129 this.target().networkAgent().replayXHR(this.requestId); |
1117 }, | 1130 }, |
1118 | 1131 |
1119 __proto__: WebInspector.SDKObject.prototype | 1132 __proto__: WebInspector.SDKObject.prototype |
1120 } | 1133 } |
OLD | NEW |