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

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

Issue 12093057: [ChromeDriver] Send DOM.getDocument after each DOM.documentUpdated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile error on win_rel Created 7 years, 11 months 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/chrome_impl.cc ('k') | chrome/test/chromedriver/devtools_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/devtools_client_impl.h
diff --git a/chrome/test/chromedriver/devtools_client_impl.h b/chrome/test/chromedriver/devtools_client_impl.h
index 2b2a83122be7f8ed521ed3b826266d578092b9c3..4d03e78f2e7225fef3358c4936d081403ad9c0b5 100644
--- a/chrome/test/chromedriver/devtools_client_impl.h
+++ b/chrome/test/chromedriver/devtools_client_impl.h
@@ -6,6 +6,7 @@
#define CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_IMPL_H_
#include <list>
+#include <map>
#include <string>
#include "base/basictypes.h"
@@ -50,7 +51,6 @@ class SyncWebSocket;
class DevToolsClientImpl : public DevToolsClient {
public:
- // Listener may be NULL.
DevToolsClientImpl(const SyncWebSocketFactory& factory,
const std::string& url);
@@ -66,6 +66,8 @@ class DevToolsClientImpl : public DevToolsClient {
virtual ~DevToolsClientImpl();
+ void SetParserFuncForTesting(const ParserFunc& parser_func);
+
// Overridden from DevToolsClient:
virtual Status SendCommand(const std::string& method,
const base::DictionaryValue& params) OVERRIDE;
@@ -96,6 +98,8 @@ class DevToolsClientImpl : public DevToolsClient {
GURL url_;
ParserFunc parser_func_;
std::list<DevToolsEventListener*> listeners_;
+ typedef std::map<int, base::DictionaryValue*> ResponseMap;
+ ResponseMap cmd_response_map_;
bool connected_;
int next_id_;
« no previous file with comments | « chrome/test/chromedriver/chrome_impl.cc ('k') | chrome/test/chromedriver/devtools_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698