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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 this._mimeType = mimeType; 53 this._mimeType = mimeType;
54 54
55 this._lastModified = lastModified && lastModified.isValid() ? lastModified : null; 55 this._lastModified = lastModified && lastModified.isValid() ? lastModified : null;
56 this._contentSize = contentSize; 56 this._contentSize = contentSize;
57 57
58 /** @type {?string} */ this._content; 58 /** @type {?string} */ this._content;
59 /** @type {boolean} */ this._contentEncoded; 59 /** @type {boolean} */ this._contentEncoded;
60 this._pendingContentCallbacks = []; 60 this._pendingContentCallbacks = [];
61 if (this._request && !this._request.finished) 61 if (this._request && !this._request.finished)
62 this._request.addEventListener(WebInspector.NetworkRequest.Events.Finish edLoading, this._requestFinished, this); 62 this._request.addEventListener(WebInspector.NetworkRequest.Events.Finish edLoading, this._requestFinished, this);
63 } 63 };
64 64
65 WebInspector.Resource.prototype = { 65 WebInspector.Resource.prototype = {
66 /** 66 /**
67 * @return {?Date} 67 * @return {?Date}
68 */ 68 */
69 lastModified: function() 69 lastModified: function()
70 { 70 {
71 if (this._lastModified || !this._request) 71 if (this._lastModified || !this._request)
72 return this._lastModified; 72 return this._lastModified;
73 var lastModifiedHeader = this._request.responseLastModified(); 73 var lastModifiedHeader = this._request.responseLastModified();
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 hasTextContent: function() 345 hasTextContent: function()
346 { 346 {
347 if (this._type.isTextType()) 347 if (this._type.isTextType())
348 return true; 348 return true;
349 if (this._type === WebInspector.resourceTypes.Other) 349 if (this._type === WebInspector.resourceTypes.Other)
350 return !!this._content && !this._contentEncoded; 350 return !!this._content && !this._contentEncoded;
351 return false; 351 return false;
352 }, 352 },
353 353
354 __proto__: WebInspector.SDKObject.prototype 354 __proto__: WebInspector.SDKObject.prototype
355 } 355 };
356 356
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698