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

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

Issue 2782773002: [DevTools] Remove SDKModels' fromTarget methods (Closed)
Patch Set: addressed review comments Created 3 years, 8 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
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 26 matching lines...) Expand all
37 * @param {!SDK.Target} target 37 * @param {!SDK.Target} target
38 * @param {string} url 38 * @param {string} url
39 * @param {string} documentURL 39 * @param {string} documentURL
40 * @param {!Protocol.Page.FrameId} frameId 40 * @param {!Protocol.Page.FrameId} frameId
41 * @param {!Protocol.Network.LoaderId} loaderId 41 * @param {!Protocol.Network.LoaderId} loaderId
42 * @param {?Protocol.Network.Initiator} initiator 42 * @param {?Protocol.Network.Initiator} initiator
43 */ 43 */
44 constructor(target, requestId, url, documentURL, frameId, loaderId, initiator) { 44 constructor(target, requestId, url, documentURL, frameId, loaderId, initiator) {
45 super(target); 45 super(target);
46 46
47 this._networkManager = /** @type {!SDK.NetworkManager} */ (SDK.NetworkManage r.fromTarget(target)); 47 this._networkManager = /** @type {!SDK.NetworkManager} */ (target.model(SDK. NetworkManager));
48 this._requestId = requestId; 48 this._requestId = requestId;
49 this.setUrl(url); 49 this.setUrl(url);
50 this._documentURL = documentURL; 50 this._documentURL = documentURL;
51 this._frameId = frameId; 51 this._frameId = frameId;
52 this._loaderId = loaderId; 52 this._loaderId = loaderId;
53 /** @type {?Protocol.Network.Initiator} */ 53 /** @type {?Protocol.Network.Initiator} */
54 this._initiator = initiator; 54 this._initiator = initiator;
55 this._issueTime = -1; 55 this._issueTime = -1;
56 this._startTime = -1; 56 this._startTime = -1;
57 this._endTime = -1; 57 this._endTime = -1;
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 Send: 'send', 1148 Send: 'send',
1149 Receive: 'receive', 1149 Receive: 'receive',
1150 Error: 'error' 1150 Error: 'error'
1151 }; 1151 };
1152 1152
1153 /** @typedef {!{type: SDK.NetworkRequest.WebSocketFrameType, time: number, text: string, opCode: number, mask: boolean}} */ 1153 /** @typedef {!{type: SDK.NetworkRequest.WebSocketFrameType, time: number, text: string, opCode: number, mask: boolean}} */
1154 SDK.NetworkRequest.WebSocketFrame; 1154 SDK.NetworkRequest.WebSocketFrame;
1155 1155
1156 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}} */ 1156 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}} */
1157 SDK.NetworkRequest.EventSourceMessage; 1157 SDK.NetworkRequest.EventSourceMessage;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698