Chromium Code Reviews

Side by Side Diff: webkit/glue/devtools/js/inspector_controller_impl.js

Issue 56149: DevTools: add support for main resource load tracking. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/devtools/js/net_agent.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview DevTools' implementation of the InspectorController API. 6 * @fileoverview DevTools' implementation of the InspectorController API.
7 */ 7 */
8 goog.require('devtools.InspectorController'); 8 goog.require('devtools.InspectorController');
9 9
10 goog.provide('devtools.InspectorControllerImpl'); 10 goog.provide('devtools.InspectorControllerImpl');
(...skipping 43 matching lines...)
54 return DevToolsHost.addSourceToFrame(mimeType, source, element.id); 54 return DevToolsHost.addSourceToFrame(mimeType, source, element.id);
55 }; 55 };
56 56
57 57
58 /** 58 /**
59 * {@inheritDoc}. 59 * {@inheritDoc}.
60 */ 60 */
61 devtools.InspectorControllerImpl.prototype.addResourceSourceToFrame = 61 devtools.InspectorControllerImpl.prototype.addResourceSourceToFrame =
62 function(identifier, element) { 62 function(identifier, element) {
63 var self = this; 63 var self = this;
64 tools.getNetAgent().getResourceContentAsync(identifier, function(source) { 64 var netAgent = devtools.tools.getNetAgent();
65 netAgent.getResourceContentAsync(identifier, function(source) {
65 var resource = netAgent.getResource(identifier); 66 var resource = netAgent.getResource(identifier);
66 self.addSourceToFrame(resource.mimeType, source, element); 67 self.addSourceToFrame(resource.mimeType, source, element);
67 }); 68 });
68 return false; 69 return false;
69 }; 70 };
70 71
71 72
72 /** 73 /**
73 * {@inheritDoc}. 74 * {@inheritDoc}.
74 */ 75 */
(...skipping 66 matching lines...)
141 }; 142 };
142 143
143 144
144 devtools.InspectorControllerImpl.prototype.stepOverStatementInDebugger = 145 devtools.InspectorControllerImpl.prototype.stepOverStatementInDebugger =
145 function() { 146 function() {
146 devtools.tools.getDebuggerAgent().stepOverStatement(); 147 devtools.tools.getDebuggerAgent().stepOverStatement();
147 }; 148 };
148 149
149 150
150 var InspectorController = new devtools.InspectorControllerImpl(); 151 var InspectorController = new devtools.InspectorControllerImpl();
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/devtools/js/net_agent.js » ('j') | no next file with comments »

Powered by Google App Engine