1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_DEVTOOLS_EVENT_LISTENER_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_DEVTOOLS_EVENT_LISTENER_H_
11 class DictionaryValue;
17 // Receives notification of incoming Blink Inspector messages and connection
18 // to the DevTools server.
19 class DevToolsEventListener {
21 virtual ~DevToolsEventListener();
23 // Called when a connection is made to the DevTools server.
24 virtual Status OnConnected(DevToolsClient* client);
26 // Called when an event is received.
27 virtual Status OnEvent(DevToolsClient* client,
28 const std::string& method,
29 const base::DictionaryValue& params);
31 // Called when a command success response is received.
32 virtual Status OnCommandSuccess(DevToolsClient* client,
33 const std::string& method);
36 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_DEVTOOLS_EVENT_LISTENER_H_