summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver/commands/chrome_commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/webdriver/commands/chrome_commands.h')
-rw-r--r--chrome/test/webdriver/commands/chrome_commands.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/chrome/test/webdriver/commands/chrome_commands.h b/chrome/test/webdriver/commands/chrome_commands.h
index c84f5d4..7fc7993 100644
--- a/chrome/test/webdriver/commands/chrome_commands.h
+++ b/chrome/test/webdriver/commands/chrome_commands.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -83,6 +83,21 @@ class ViewsCommand : public WebDriverCommand {
DISALLOW_COPY_AND_ASSIGN(ViewsCommand);
};
+#if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS))
+class HeapProfilerDumpCommand : public WebDriverCommand {
+ public:
+ HeapProfilerDumpCommand(const std::vector<std::string>& path_segments,
+ const base::DictionaryValue* const parameters);
+ virtual ~HeapProfilerDumpCommand();
+
+ virtual bool DoesPost() OVERRIDE;
+ virtual void ExecutePost(Response* const response) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(HeapProfilerDumpCommand);
+};
+#endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS))
+
} // namespace webdriver
#endif // CHROME_TEST_WEBDRIVER_COMMANDS_CHROME_COMMANDS_H_