OLD | NEW |
(Empty) | |
| 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_DEVTOOLS_CLIENT_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 |
| 13 namespace base { |
| 14 class DictionaryValue; |
| 15 } |
| 16 |
| 17 class Status; |
| 18 class SyncWebSocket; |
| 19 class URLRequestContextGetter; |
| 20 |
| 21 // A DevTools client of a single DevTools debugger. |
| 22 class DevToolsClient { |
| 23 public: |
| 24 DevToolsClient(URLRequestContextGetter* context_getter, |
| 25 const std::string& url); |
| 26 ~DevToolsClient(); |
| 27 |
| 28 Status SendCommand(const std::string& method, |
| 29 const base::DictionaryValue& params); |
| 30 |
| 31 private: |
| 32 scoped_refptr<URLRequestContextGetter> context_getter_; |
| 33 std::string url_; |
| 34 scoped_ptr<SyncWebSocket> socket_; |
| 35 bool connected_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); |
| 38 }; |
| 39 |
| 40 #endif // CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_H_ |
OLD | NEW |