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

Unified Diff: chrome/test/chromedriver/command_listener.h

Issue 353063005: [ChromeDriver] Subscribe PerformanceLogger to CommandListener interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unnecessary check in test Created 6 years, 5 months 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
Index: chrome/test/chromedriver/command_listener.h
diff --git a/chrome/test/chromedriver/command_listener.h b/chrome/test/chromedriver/command_listener.h
new file mode 100644
index 0000000000000000000000000000000000000000..36f77257f6e1799281d293e39695ba2f8fe22c46
--- /dev/null
+++ b/chrome/test/chromedriver/command_listener.h
@@ -0,0 +1,22 @@
+// Copyright 2014 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.
+
+#ifndef CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_H_
+#define CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_H_
+
+#include <string>
+
+class Status;
+
+class CommandListener {
+ public:
+ virtual ~CommandListener() {}
+
+ // Called just before a WebDriver command is run, but only
+ // for commands that operate on an existing session. Will be called for
+ // WindowCommands, ElementCommands, SessionCommands, and AlertCommands.
+ virtual Status BeforeCommand(const std::string& command_name) = 0;
+};
+
+#endif // CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_H_
« no previous file with comments | « chrome/test/chromedriver/chrome/performance_logger_unittest.cc ('k') | chrome/test/chromedriver/command_listener_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698