Index: chrome/test/chromedriver/performance_logger.h |
diff --git a/chrome/test/chromedriver/chrome/performance_logger.h b/chrome/test/chromedriver/performance_logger.h |
similarity index 76% |
rename from chrome/test/chromedriver/chrome/performance_logger.h |
rename to chrome/test/chromedriver/performance_logger.h |
index b9cc8a14104a633bd4ecccbe9bd78d302934f8e9..b4c8eb44d5cf9b772c5feae5ebcbbbc35d4637d5 100644 |
--- a/chrome/test/chromedriver/chrome/performance_logger.h |
+++ b/chrome/test/chromedriver/performance_logger.h |
@@ -2,12 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_TEST_CHROMEDRIVER_CHROME_PERFORMANCE_LOGGER_H_ |
-#define CHROME_TEST_CHROMEDRIVER_CHROME_PERFORMANCE_LOGGER_H_ |
+#ifndef CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ |
+#define CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
#include "chrome/test/chromedriver/chrome/devtools_event_listener.h" |
+#include "chrome/test/chromedriver/command_listener.h" |
class Log; |
@@ -18,7 +19,7 @@ class Log; |
// "webview": <originating WebView ID>, |
// "message": { "method": "...", "params": { ... }} // DevTools message. |
// } |
-class PerformanceLogger : public DevToolsEventListener { |
+class PerformanceLogger : public DevToolsEventListener, public CommandListener { |
public: |
// Creates a PerformanceLogger that creates entries in the given Log object. |
// The log is owned elsewhere and must not be null. |
@@ -31,10 +32,12 @@ class PerformanceLogger : public DevToolsEventListener { |
const std::string& method, |
const base::DictionaryValue& params) OVERRIDE; |
+ virtual Status BeforeCommand(const std::string& command_name) OVERRIDE; |
+ |
private: |
Log* log_; // The log where to create entries. |
DISALLOW_COPY_AND_ASSIGN(PerformanceLogger); |
}; |
-#endif // CHROME_TEST_CHROMEDRIVER_CHROME_PERFORMANCE_LOGGER_H_ |
+#endif // CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_ |