// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_TEST_CHROMEDRIVER_DEVTOOLS_EVENTS_LOGGER_H_ #define CHROME_TEST_CHROMEDRIVER_DEVTOOLS_EVENTS_LOGGER_H_ #include <string> #include <unordered_set> #include "base/memory/raw_ptr.h" #include "base/memory/raw_ref.h" #include "base/values.h" #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" #include "chrome/test/chromedriver/chrome/log.h" #include "chrome/test/chromedriver/chrome/status.h" // Collects DevTools events into Log messages with info level. // // The message is a JSON string of the following structure: // { // "message": { "method": "...", "params": { ... }} // DevTools message. // } class DevToolsEventsLogger : public DevToolsEventListener { … }; #endif // CHROME_TEST_CHROMEDRIVER_DEVTOOLS_EVENTS_LOGGER_H_