- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / chromedriver / chrome / devtools_event_listener.h
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.
4
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_DEVTOOLS_EVENT_LISTENER_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_DEVTOOLS_EVENT_LISTENER_H_
7
8 #include <string>
9
10 namespace base {
11 class DictionaryValue;
12 }
13
14 class DevToolsClient;
15 class Status;
16
17 // Receives notification of incoming Blink Inspector messages and connection
18 // to the DevTools server.
19 class DevToolsEventListener {
20  public:
21   virtual ~DevToolsEventListener();
22
23   // Called when a connection is made to the DevTools server.
24   virtual Status OnConnected(DevToolsClient* client);
25
26   // Called when an event is received.
27   virtual Status OnEvent(DevToolsClient* client,
28                          const std::string& method,
29                          const base::DictionaryValue& params);
30
31   // Called when a command success response is received.
32   virtual Status OnCommandSuccess(DevToolsClient* client,
33                                   const std::string& method);
34 };
35
36 #endif  // CHROME_TEST_CHROMEDRIVER_CHROME_DEVTOOLS_EVENT_LISTENER_H_