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

Side by Side Diff: Source/devtools/front_end/sdk/NetworkRequest.js

Issue 1259393002: DevTools: add support for logging fetch requests when XHR logging is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed the test Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 WebInspector.NetworkRequest.WebSocketFrame; 110 WebInspector.NetworkRequest.WebSocketFrame;
111 111
112 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}} */ 112 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}} */
113 WebInspector.NetworkRequest.EventSourceMessage; 113 WebInspector.NetworkRequest.EventSourceMessage;
114 114
115 WebInspector.NetworkRequest.prototype = { 115 WebInspector.NetworkRequest.prototype = {
116 /** 116 /**
117 * @param {!WebInspector.NetworkRequest} other 117 * @param {!WebInspector.NetworkRequest} other
118 * @return {number} 118 * @return {number}
119 */ 119 */
120 indentityCompare: function(other) { 120 indentityCompare: function(other)
121 {
121 if (this._requestId > other._requestId) 122 if (this._requestId > other._requestId)
122 return 1; 123 return 1;
123 if (this._requestId < other._requestId) 124 if (this._requestId < other._requestId)
124 return -1; 125 return -1;
125 return 0; 126 return 0;
126 }, 127 },
127 128
128 /** 129 /**
129 * @return {!NetworkAgent.RequestId} 130 * @return {!NetworkAgent.RequestId}
130 */ 131 */
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo urceMessageAdded, message); 1072 this.dispatchEventToListeners(WebInspector.NetworkRequest.Events.EventSo urceMessageAdded, message);
1072 }, 1073 },
1073 1074
1074 replayXHR: function() 1075 replayXHR: function()
1075 { 1076 {
1076 this.target().networkAgent().replayXHR(this.requestId); 1077 this.target().networkAgent().replayXHR(this.requestId);
1077 }, 1078 },
1078 1079
1079 __proto__: WebInspector.SDKObject.prototype 1080 __proto__: WebInspector.SDKObject.prototype
1080 } 1081 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698