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

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

Issue 14591005: C++ readability review from original change https://chromiumcodereview.appspot.com/14263024/ (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Fix types in CHECK comparisons. Created 7 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 | « no previous file | chrome/test/chromedriver/chrome/console_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome/console_logger.h
diff --git a/chrome/test/chromedriver/chrome/console_logger.h b/chrome/test/chromedriver/chrome/console_logger.h
index 4d0bdcbf172769bc01dc61618de44961033cbad3..4efdcf3c54ca2eb8a1c9959ad676c7a5888c8b0d 100644
--- a/chrome/test/chromedriver/chrome/console_logger.h
+++ b/chrome/test/chromedriver/chrome/console_logger.h
@@ -19,15 +19,19 @@ class Log;
// Translates the level into Log::Level, drops all other fields.
class ConsoleLogger : public DevToolsEventListener {
public:
+ // Creates a ConsoleLogger that creates entries in the given Log object.
+ // The log is owned elsewhere and must not be null.
explicit ConsoleLogger(Log* log);
+ // Enables Console events for the 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_;
+ Log* log_; // The log where to create entries.
DISALLOW_COPY_AND_ASSIGN(ConsoleLogger);
};
« no previous file with comments | « no previous file | chrome/test/chromedriver/chrome/console_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698