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

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

Issue 2906843002: [Devtools] Move to canReplayRequest in NetworkRequest (Closed)
Patch Set: [Devtools] Move to canReplayRequest in NetworkRequest Created 3 years, 7 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/network/NetworkLogView.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 4750c082d79e8b4143a10d2c75621c5c25344752..dc4c29876a8cd6c8bdfd8b912c70a844b6e69e58 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
@@ -1108,7 +1108,14 @@ SDK.NetworkRequest = class extends Common.Object {
this.dispatchEventToListeners(SDK.NetworkRequest.Events.EventSourceMessageAdded, message);
}
- replayXHR() {
+ /**
+ * @return {boolean}
+ */
+ canReplayRequest() {
pfeldman 2017/05/30 17:39:45 I thought that it would move to the network manage
allada 2017/05/31 23:30:13 I was going to move this after I remove the refere
+ return this._resourceType === Common.resourceTypes.XHR;
+ }
+
+ replayRequest() {
this._networkManager.target().networkAgent().replayXHR(this._requestId);
}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698