blob: 4edb9de90cc48f5c69070f5f7161b9682c7c7067 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// 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_CLIENT_H_
#define CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_H_
#include <string>
#include "base/memory/scoped_ptr.h"
namespace base {
class DictionaryValue;
}
class Status;
// A DevTools client of a single DevTools debugger.
class DevToolsClient {
public:
virtual ~DevToolsClient() {}
virtual Status SendCommand(const std::string& method,
const base::DictionaryValue& params) = 0;
virtual Status SendCommandAndGetResult(
const std::string& method,
const base::DictionaryValue& params,
scoped_ptr<base::DictionaryValue>* result) = 0;
};
#endif // CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_H_
|