Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8145)

Unified Diff: chrome/test/chromedriver/devtools_client.h

Issue 11415205: [chromedriver] Implement connecting to devtools and loading a page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/commands_unittest.cc ('k') | chrome/test/chromedriver/devtools_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/devtools_client.h
diff --git a/chrome/test/chromedriver/devtools_client.h b/chrome/test/chromedriver/devtools_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..218632f8f034cf6854d6e4367a6afc6841a5e926
--- /dev/null
+++ b/chrome/test/chromedriver/devtools_client.h
@@ -0,0 +1,40 @@
+// 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/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+class Status;
+class SyncWebSocket;
+class URLRequestContextGetter;
+
+// A DevTools client of a single DevTools debugger.
+class DevToolsClient {
+ public:
+ DevToolsClient(URLRequestContextGetter* context_getter,
+ const std::string& url);
+ ~DevToolsClient();
+
+ Status SendCommand(const std::string& method,
+ const base::DictionaryValue& params);
+
+ private:
+ scoped_refptr<URLRequestContextGetter> context_getter_;
+ std::string url_;
+ scoped_ptr<SyncWebSocket> socket_;
+ bool connected_;
+
+ DISALLOW_COPY_AND_ASSIGN(DevToolsClient);
+};
+
+#endif // CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_H_
« no previous file with comments | « chrome/test/chromedriver/commands_unittest.cc ('k') | chrome/test/chromedriver/devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698