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

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

Issue 429693003: [ChromeDriver] Implementing PerfLoggingPrefs for perf log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing memory leak Created 6 years, 4 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/test/chromedriver/logging.cc ('k') | chrome/test/chromedriver/performance_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/performance_logger.h
diff --git a/chrome/test/chromedriver/performance_logger.h b/chrome/test/chromedriver/performance_logger.h
index b96f4904ff8d575b8363bd0c31250f163f807134..f31687908453d686689f6e389099c45d76b89fed 100644
--- a/chrome/test/chromedriver/performance_logger.h
+++ b/chrome/test/chromedriver/performance_logger.h
@@ -5,8 +5,11 @@
#ifndef CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_
#define CHROME_TEST_CHROMEDRIVER_PERFORMANCE_LOGGER_H_
+#include <string>
+
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "chrome/test/chromedriver/capabilities.h"
#include "chrome/test/chromedriver/chrome/devtools_event_listener.h"
#include "chrome/test/chromedriver/command_listener.h"
@@ -21,10 +24,13 @@ class Log;
// }
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.
+ // Creates a |PerformanceLogger| with default preferences that creates entries
+ // in the given Log object. The log is owned elsewhere and must not be null.
explicit PerformanceLogger(Log* log);
+ // Creates a |PerformanceLogger| with specific preferences.
+ PerformanceLogger(Log* log, const PerfLoggingPrefs& prefs);
+
// 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.
@@ -39,6 +45,7 @@ class PerformanceLogger : public DevToolsEventListener, public CommandListener {
private:
Log* log_; // The log where to create entries.
+ PerfLoggingPrefs prefs_;
DISALLOW_COPY_AND_ASSIGN(PerformanceLogger);
};
« no previous file with comments | « chrome/test/chromedriver/logging.cc ('k') | chrome/test/chromedriver/performance_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698