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

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

Issue 331943003: [ChromeDriver] Added CommandListener interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved PerformanceLogger to chromedriver/ Created 6 years, 6 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/chromedriver/chrome/performance_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome/performance_logger.h
diff --git a/chrome/test/chromedriver/chrome/performance_logger.h b/chrome/test/chromedriver/chrome/performance_logger.h
deleted file mode 100644
index b9cc8a14104a633bd4ecccbe9bd78d302934f8e9..0000000000000000000000000000000000000000
--- a/chrome/test/chromedriver/chrome/performance_logger.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2013 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_CHROME_PERFORMANCE_LOGGER_H_
-#define CHROME_TEST_CHROMEDRIVER_CHROME_PERFORMANCE_LOGGER_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "chrome/test/chromedriver/chrome/devtools_event_listener.h"
-
-class Log;
-
-// Translates DevTools profiler events into Log messages with info level.
-//
-// The message is a JSON string of the following structure:
-// {
-// "webview": <originating WebView ID>,
-// "message": { "method": "...", "params": { ... }} // DevTools message.
-// }
-class PerformanceLogger : public DevToolsEventListener {
- public:
- // Creates a PerformanceLogger that creates entries in the given Log object.
- // The log is owned elsewhere and must not be null.
- explicit PerformanceLogger(Log* log);
-
- // Enables Page,Network,Timeline events for client, which must not be null.
- virtual Status OnConnected(DevToolsClient* client) OVERRIDE;
- // Translates an event into a log entry.
- virtual Status OnEvent(DevToolsClient* client,
- const std::string& method,
- const base::DictionaryValue& params) OVERRIDE;
-
- private:
- Log* log_; // The log where to create entries.
-
- DISALLOW_COPY_AND_ASSIGN(PerformanceLogger);
-};
-
-#endif // CHROME_TEST_CHROMEDRIVER_CHROME_PERFORMANCE_LOGGER_H_
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/chromedriver/chrome/performance_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698