Chromium Code Reviews| 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_ |