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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/RequestResponseView.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.RequestContentView} 33 * @extends {WebInspector.RequestContentView}
34 * @param {!WebInspector.NetworkRequest} request 34 * @param {!WebInspector.NetworkRequest} request
35 */ 35 */
36 WebInspector.RequestResponseView = function(request) 36 WebInspector.RequestResponseView = function(request)
37 { 37 {
38 WebInspector.RequestContentView.call(this, request); 38 WebInspector.RequestContentView.call(this, request);
39 } 39 };
40 40
41 WebInspector.RequestResponseView.prototype = { 41 WebInspector.RequestResponseView.prototype = {
42 get sourceView() 42 get sourceView()
43 { 43 {
44 if (this._sourceView || !WebInspector.RequestView.hasTextContent(this.re quest)) 44 if (this._sourceView || !WebInspector.RequestView.hasTextContent(this.re quest))
45 return this._sourceView; 45 return this._sourceView;
46 46
47 var contentProvider = new WebInspector.RequestResponseView.ContentProvid er(this.request); 47 var contentProvider = new WebInspector.RequestResponseView.ContentProvid er(this.request);
48 var highlighterType = this.request.resourceType().canonicalMimeType() || this.request.mimeType; 48 var highlighterType = this.request.resourceType().canonicalMimeType() || this.request.mimeType;
49 this._sourceView = WebInspector.ResourceSourceFrame.createSearchableView (contentProvider, highlighterType); 49 this._sourceView = WebInspector.ResourceSourceFrame.createSearchableView (contentProvider, highlighterType);
(...skipping 26 matching lines...) Expand all
76 this.sourceView.show(this.element); 76 this.sourceView.show(this.element);
77 } else { 77 } else {
78 if (!this._errorView) 78 if (!this._errorView)
79 this._errorView = this._createMessageView(WebInspector.UIStr ing("Failed to load response data")); 79 this._errorView = this._createMessageView(WebInspector.UIStr ing("Failed to load response data"));
80 this._errorView.show(this.element); 80 this._errorView.show(this.element);
81 } 81 }
82 } 82 }
83 }, 83 },
84 84
85 __proto__: WebInspector.RequestContentView.prototype 85 __proto__: WebInspector.RequestContentView.prototype
86 } 86 };
87 87
88 /** 88 /**
89 * @constructor 89 * @constructor
90 * @implements {WebInspector.ContentProvider} 90 * @implements {WebInspector.ContentProvider}
91 * @param {!WebInspector.NetworkRequest} request 91 * @param {!WebInspector.NetworkRequest} request
92 */ 92 */
93 WebInspector.RequestResponseView.ContentProvider = function(request) { 93 WebInspector.RequestResponseView.ContentProvider = function(request) {
94 this._request = request; 94 this._request = request;
95 } 95 };
96 96
97 WebInspector.RequestResponseView.ContentProvider.prototype = { 97 WebInspector.RequestResponseView.ContentProvider.prototype = {
98 /** 98 /**
99 * @override 99 * @override
100 * @return {string} 100 * @return {string}
101 */ 101 */
102 contentURL: function() 102 contentURL: function()
103 { 103 {
104 return this._request.contentURL(); 104 return this._request.contentURL();
105 }, 105 },
(...skipping 30 matching lines...) Expand all
136 * @override 136 * @override
137 * @param {string} query 137 * @param {string} query
138 * @param {boolean} caseSensitive 138 * @param {boolean} caseSensitive
139 * @param {boolean} isRegex 139 * @param {boolean} isRegex
140 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal lback 140 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal lback
141 */ 141 */
142 searchInContent: function(query, caseSensitive, isRegex, callback) 142 searchInContent: function(query, caseSensitive, isRegex, callback)
143 { 143 {
144 this._request.searchInContent(query, caseSensitive, isRegex, callback); 144 this._request.searchInContent(query, caseSensitive, isRegex, callback);
145 } 145 }
146 } 146 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698