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

Side by Side Diff: chrome/test/chromedriver/chrome_impl.h

Issue 12093057: [ChromeDriver] Send DOM.getDocument after each DOM.documentUpdated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: actually uploaded the files Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/process.h" 15 #include "base/process.h"
16 #include "chrome/test/chromedriver/chrome.h" 16 #include "chrome/test/chromedriver/chrome.h"
17 #include "chrome/test/chromedriver/net/sync_websocket_factory.h" 17 #include "chrome/test/chromedriver/net/sync_websocket_factory.h"
18 18
19 namespace base { 19 namespace base {
20 class DictionaryValue; 20 class DictionaryValue;
21 class ListValue; 21 class ListValue;
22 class Value; 22 class Value;
23 } 23 }
24 24
25 class DevToolsClient; 25 class DevToolsClient;
26 class DevToolsState;
26 class DomTracker; 27 class DomTracker;
27 class FrameTracker; 28 class FrameTracker;
28 class NavigationTracker; 29 class NavigationTracker;
29 class Status; 30 class Status;
30 class URLRequestContextGetter; 31 class URLRequestContextGetter;
31 32
32 class ChromeImpl : public Chrome { 33 class ChromeImpl : public Chrome {
33 public: 34 public:
34 ChromeImpl(base::ProcessHandle process, 35 ChromeImpl(base::ProcessHandle process,
35 URLRequestContextGetter* context_getter, 36 URLRequestContextGetter* context_getter,
(...skipping 28 matching lines...) Expand all
64 private: 65 private:
65 base::ProcessHandle process_; 66 base::ProcessHandle process_;
66 scoped_refptr<URLRequestContextGetter> context_getter_; 67 scoped_refptr<URLRequestContextGetter> context_getter_;
67 base::ScopedTempDir user_data_dir_; 68 base::ScopedTempDir user_data_dir_;
68 int port_; 69 int port_;
69 SyncWebSocketFactory socket_factory_; 70 SyncWebSocketFactory socket_factory_;
70 scoped_ptr<DomTracker> dom_tracker_; 71 scoped_ptr<DomTracker> dom_tracker_;
71 scoped_ptr<FrameTracker> frame_tracker_; 72 scoped_ptr<FrameTracker> frame_tracker_;
72 scoped_ptr<NavigationTracker> navigation_tracker_; 73 scoped_ptr<NavigationTracker> navigation_tracker_;
73 scoped_ptr<DevToolsClient> client_; 74 scoped_ptr<DevToolsClient> client_;
75 scoped_ptr<DevToolsState> client_state_;
74 }; 76 };
75 77
76 namespace internal { 78 namespace internal {
77 79
78 Status ParsePagesInfo(const std::string& data, 80 Status ParsePagesInfo(const std::string& data,
79 std::list<std::string>* debugger_urls); 81 std::list<std::string>* debugger_urls);
80 enum EvaluateScriptReturnType { 82 enum EvaluateScriptReturnType {
81 ReturnByValue, 83 ReturnByValue,
82 ReturnByObject 84 ReturnByObject
83 }; 85 };
(...skipping 14 matching lines...) Expand all
98 scoped_ptr<base::Value>* result); 100 scoped_ptr<base::Value>* result);
99 Status GetNodeIdFromFunction(DevToolsClient* client, 101 Status GetNodeIdFromFunction(DevToolsClient* client,
100 int context_id, 102 int context_id,
101 const std::string& function, 103 const std::string& function,
102 const base::ListValue& args, 104 const base::ListValue& args,
103 int* node_id); 105 int* node_id);
104 106
105 } // namespace internal 107 } // namespace internal
106 108
107 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_ 109 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698