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

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

Issue 2743013002: Add webdriver endpoint to send custom debugger commands (Closed)
Patch Set: New DevToolsEventsLogger Created 3 years, 9 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/base_logger.h
diff --git a/chrome/test/chromedriver/base_logger.h b/chrome/test/chromedriver/base_logger.h
new file mode 100644
index 0000000000000000000000000000000000000000..2aceff7cd7d11fc4edee686462c52ad122791102
--- /dev/null
+++ b/chrome/test/chromedriver/base_logger.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
samuong 2017/03/27 18:42:10 it's 2017 now :)
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_CHROMEDRIVER_BASE_LOGGER_H_
+#define CHROME_TEST_CHROMEDRIVER_BASE_LOGGER_H_
+
+#include <string>
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "base/values.h"
+#include "chrome/test/chromedriver/chrome/log.h"
+
+class Log;
+
+class BaseLogger {
+ public:
+ // Creates a |BaseLogger| creates entries in the given Log object.
+ // The log is owned elsewhere and must not be null.
+ BaseLogger(Log* log);
+
+ void AddLogEntry(Log::Level level,
+ const std::string& webview,
+ const std::string& method,
+ const base::DictionaryValue& params);
+
+ void AddLogEntry(const std::string& webview,
+ const std::string& method,
+ const base::DictionaryValue& params);
+ private:
+ Log* log_; // The log where to create entries.
+
+ DISALLOW_COPY_AND_ASSIGN(BaseLogger);
+};
+
+#endif // CHROME_TEST_CHROMEDRIVER_BASE_LOGGER_H_

Powered by Google App Engine
This is Rietveld 408576698