summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 09:16:06 +0000
committermnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 09:16:06 +0000
commit8fff52b2de00ef57b20847e334536e8d551b4cb6 (patch)
treec8b22ce4e6b377c6c0fa1521035adedc10b6d39d
parent6e6f5aac5041ca407e6963d7839c3730006ee1e5 (diff)
downloadchromium_src-8fff52b2de00ef57b20847e334536e8d551b4cb6.zip
chromium_src-8fff52b2de00ef57b20847e334536e8d551b4cb6.tar.gz
chromium_src-8fff52b2de00ef57b20847e334536e8d551b4cb6.tar.bz2
DevTools: add methods to our InspectorController stub to prepare for a change in WebKit.
BUG=none TEST=none Review URL: http://codereview.chromium.org/273034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28804 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/glue/devtools/js/inspector_controller.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/webkit/glue/devtools/js/inspector_controller.js b/webkit/glue/devtools/js/inspector_controller.js
index 21447ea..435d26e 100644
--- a/webkit/glue/devtools/js/inspector_controller.js
+++ b/webkit/glue/devtools/js/inspector_controller.js
@@ -446,6 +446,7 @@ devtools.InspectorController.prototype.stopProfiling = function() {
/**
+ * TODO(mnaganov): Remove after injected script change landing in WebKit.
* @return {Array.<Object>} Profile snapshots array.
*/
devtools.InspectorController.prototype.profiles = function() {
@@ -454,6 +455,21 @@ devtools.InspectorController.prototype.profiles = function() {
/**
+ * Async function for retrieving headers of existing profiles.
+ */
+devtools.InspectorController.prototype.getProfileHeaders = function(callId) {
+ WebInspector.didGetProfileHeaders(callId, []);
+};
+
+
+/**
+ * Async function for lazy loading an existing profile.
+ */
+devtools.InspectorController.prototype.getProfile = function(callId, uid) {
+};
+
+
+/**
* Tells backend to create a heap snapshot.
*/
devtools.InspectorController.prototype.takeHeapSnapshot = function() {