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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698