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

Unified Diff: webkit/glue/devtools/js/inspector_controller_impl.js

Issue 355012: DevTools: prepare for WebKit change 50460. (Closed)
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/devtools/js/inspector_controller.js ('k') | webkit/glue/devtools/js/tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/inspector_controller_impl.js
diff --git a/webkit/glue/devtools/js/inspector_controller_impl.js b/webkit/glue/devtools/js/inspector_controller_impl.js
index e327bc31d35e4c4e002915baa480083ad8d7d3e0..6b341b36b9fb075cc2cdac9db4edf5d4462dfb27 100644
--- a/webkit/glue/devtools/js/inspector_controller_impl.js
+++ b/webkit/glue/devtools/js/inspector_controller_impl.js
@@ -248,6 +248,34 @@ devtools.InspectorControllerImpl.prototype.stopProfiling = function() {
/**
* @override
*/
+devtools.InspectorControllerImpl.prototype.getProfileHeaders = function(callId) {
+ WebInspector.didGetProfileHeaders(callId, []);
+};
+
+
+/**
+ * Emulate WebKit InspectorController behavior. It stores profiles on renderer side,
+ * and is able to retrieve them by uid using 'getProfile'.
+ */
+devtools.InspectorControllerImpl.prototype.addFullProfile = function(profile) {
+ WebInspector.__fullProfiles = WebInspector.__fullProfiles || {};
+ WebInspector.__fullProfiles[profile.uid] = profile;
+};
+
+
+/**
+ * @override
+ */
+devtools.InspectorControllerImpl.prototype.getProfile = function(callId, uid) {
+ if (WebInspector.__fullProfiles && (uid in WebInspector.__fullProfiles)) {
+ WebInspector.didGetProfile(callId, WebInspector.__fullProfiles[uid]);
+ }
+};
+
+
+/**
+ * @override
+ */
devtools.InspectorControllerImpl.prototype.takeHeapSnapshot = function() {
devtools.tools.getDebuggerAgent().startProfiling(
devtools.DebuggerAgent.ProfilerModules.PROFILER_MODULE_HEAP_SNAPSHOT
« no previous file with comments | « webkit/glue/devtools/js/inspector_controller.js ('k') | webkit/glue/devtools/js/tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698