| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 25 matching lines...) Expand all Loading... |
| 36 WebInspector.NetworkItemView = function(request) | 36 WebInspector.NetworkItemView = function(request) |
| 37 { | 37 { |
| 38 WebInspector.TabbedPane.call(this); | 38 WebInspector.TabbedPane.call(this); |
| 39 this.element.classList.add("network-item-view"); | 39 this.element.classList.add("network-item-view"); |
| 40 | 40 |
| 41 var headersView = new WebInspector.RequestHeadersView(request); | 41 var headersView = new WebInspector.RequestHeadersView(request); |
| 42 this.appendTab("headers", WebInspector.UIString("Headers"), headersView); | 42 this.appendTab("headers", WebInspector.UIString("Headers"), headersView); |
| 43 | 43 |
| 44 this.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, this._
tabSelected, this); | 44 this.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, this._
tabSelected, this); |
| 45 | 45 |
| 46 if (request.type === WebInspector.resourceTypes.WebSocket) { | 46 if (request.resourceType() === WebInspector.resourceTypes.WebSocket) { |
| 47 var frameView = new WebInspector.ResourceWebSocketFrameView(request); | 47 var frameView = new WebInspector.ResourceWebSocketFrameView(request); |
| 48 this.appendTab("webSocketFrames", WebInspector.UIString("Frames"), frame
View); | 48 this.appendTab("webSocketFrames", WebInspector.UIString("Frames"), frame
View); |
| 49 } else { | 49 } else { |
| 50 var responseView = new WebInspector.RequestResponseView(request); | 50 var responseView = new WebInspector.RequestResponseView(request); |
| 51 var previewView = new WebInspector.RequestPreviewView(request, responseV
iew); | 51 var previewView = new WebInspector.RequestPreviewView(request, responseV
iew); |
| 52 this.appendTab("preview", WebInspector.UIString("Preview"), previewView)
; | 52 this.appendTab("preview", WebInspector.UIString("Preview"), previewView)
; |
| 53 this.appendTab("response", WebInspector.UIString("Response"), responseVi
ew); | 53 this.appendTab("response", WebInspector.UIString("Response"), responseVi
ew); |
| 54 } | 54 } |
| 55 | 55 |
| 56 if (request.requestCookies || request.responseCookies) { | 56 if (request.requestCookies || request.responseCookies) { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 this.request.requestContent(callback.bind(this)); | 168 this.request.requestContent(callback.bind(this)); |
| 169 }, | 169 }, |
| 170 | 170 |
| 171 contentLoaded: function() | 171 contentLoaded: function() |
| 172 { | 172 { |
| 173 // Should be implemented by subclasses. | 173 // Should be implemented by subclasses. |
| 174 }, | 174 }, |
| 175 | 175 |
| 176 __proto__: WebInspector.RequestView.prototype | 176 __proto__: WebInspector.RequestView.prototype |
| 177 } | 177 } |
| OLD | NEW |