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

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

Issue 2413233003: DevTools: introduce WI.Resource.contentSize() and WI.Resource.lastModified() (Closed)
Patch Set: always send last-modified in php script Created 4 years, 2 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 * @return {!Array.<!WebInspector.Cookie>} 794 * @return {!Array.<!WebInspector.Cookie>}
795 */ 795 */
796 get responseCookies() 796 get responseCookies()
797 { 797 {
798 if (!this._responseCookies) 798 if (!this._responseCookies)
799 this._responseCookies = WebInspector.CookieParser.parseSetCookie(thi s.target(), this.responseHeaderValue("Set-Cookie")); 799 this._responseCookies = WebInspector.CookieParser.parseSetCookie(thi s.target(), this.responseHeaderValue("Set-Cookie"));
800 return this._responseCookies; 800 return this._responseCookies;
801 }, 801 },
802 802
803 /** 803 /**
804 * @return {string|undefined}
805 */
806 responseLastModified: function()
807 {
808 return this.responseHeaderValue("last-modified");
809 },
810
811 /**
804 * @return {?Array.<!WebInspector.ServerTiming>} 812 * @return {?Array.<!WebInspector.ServerTiming>}
805 */ 813 */
806 get serverTimings() 814 get serverTimings()
807 { 815 {
808 if (typeof this._serverTimings === "undefined") 816 if (typeof this._serverTimings === "undefined")
809 this._serverTimings = WebInspector.ServerTiming.parseHeaders(this.re sponseHeaders); 817 this._serverTimings = WebInspector.ServerTiming.parseHeaders(this.re sponseHeaders);
810 return this._serverTimings; 818 return this._serverTimings;
811 }, 819 },
812 820
813 /** 821 /**
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 /** 1262 /**
1255 * @return {!WebInspector.NetworkManager} 1263 * @return {!WebInspector.NetworkManager}
1256 */ 1264 */
1257 networkManager: function() 1265 networkManager: function()
1258 { 1266 {
1259 return this._networkManager; 1267 return this._networkManager;
1260 }, 1268 },
1261 1269
1262 __proto__: WebInspector.SDKObject.prototype 1270 __proto__: WebInspector.SDKObject.prototype
1263 } 1271 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698