Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
samuong
2017/03/27 18:42:10
it's 2017 now :)
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_TEST_CHROMEDRIVER_BASE_LOGGER_H_ | |
| 6 #define CHROME_TEST_CHROMEDRIVER_BASE_LOGGER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "base/macros.h" | |
| 12 #include "base/values.h" | |
| 13 #include "chrome/test/chromedriver/chrome/log.h" | |
| 14 | |
| 15 class Log; | |
| 16 | |
| 17 class BaseLogger { | |
| 18 public: | |
| 19 // Creates a |BaseLogger| creates entries in the given Log object. | |
| 20 // The log is owned elsewhere and must not be null. | |
| 21 BaseLogger(Log* log); | |
| 22 | |
| 23 void AddLogEntry(Log::Level level, | |
| 24 const std::string& webview, | |
| 25 const std::string& method, | |
| 26 const base::DictionaryValue& params); | |
| 27 | |
| 28 void AddLogEntry(const std::string& webview, | |
| 29 const std::string& method, | |
| 30 const base::DictionaryValue& params); | |
| 31 private: | |
| 32 Log* log_; // The log where to create entries. | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(BaseLogger); | |
| 35 }; | |
| 36 | |
| 37 #endif // CHROME_TEST_CHROMEDRIVER_BASE_LOGGER_H_ | |
| OLD | NEW |