OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_WEB_VIEW_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 14 matching lines...) Expand all Loading... |
25 class DevToolsClient; | 25 class DevToolsClient; |
26 class DomTracker; | 26 class DomTracker; |
27 class FrameTracker; | 27 class FrameTracker; |
28 class GeolocationOverrideManager; | 28 class GeolocationOverrideManager; |
29 class MobileEmulationOverrideManager; | 29 class MobileEmulationOverrideManager; |
30 class NetworkConditionsOverrideManager; | 30 class NetworkConditionsOverrideManager; |
31 class HeapSnapshotTaker; | 31 class HeapSnapshotTaker; |
32 struct KeyEvent; | 32 struct KeyEvent; |
33 struct MouseEvent; | 33 struct MouseEvent; |
34 class NavigationTracker; | 34 class NavigationTracker; |
| 35 class NavigationTrackerNone; |
| 36 class PageLoadStrategy; |
35 class Status; | 37 class Status; |
36 | 38 |
37 class WebViewImpl : public WebView { | 39 class WebViewImpl : public WebView { |
38 public: | 40 public: |
39 WebViewImpl(const std::string& id, | 41 WebViewImpl(const std::string& id, |
40 const BrowserInfo* browser_info, | 42 const BrowserInfo* browser_info, |
41 std::unique_ptr<DevToolsClient> client); | 43 std::unique_ptr<DevToolsClient> client); |
42 WebViewImpl(const std::string& id, | 44 WebViewImpl(const std::string& id, |
43 const BrowserInfo* browser_info, | 45 const BrowserInfo* browser_info, |
44 std::unique_ptr<DevToolsClient> client, | 46 std::unique_ptr<DevToolsClient> client, |
45 const DeviceMetrics* device_metrics); | 47 const DeviceMetrics* device_metrics, |
| 48 std::string page_load_strategy); |
46 ~WebViewImpl() override; | 49 ~WebViewImpl() override; |
47 | 50 |
48 // Overridden from WebView: | 51 // Overridden from WebView: |
49 std::string GetId() override; | 52 std::string GetId() override; |
50 bool WasCrashed() override; | 53 bool WasCrashed() override; |
51 Status ConnectIfNecessary() override; | 54 Status ConnectIfNecessary() override; |
52 Status HandleReceivedEvents() override; | 55 Status HandleReceivedEvents() override; |
53 Status GetUrl(std::string* url) override; | 56 Status GetUrl(std::string* url) override; |
54 Status Load(const std::string& url, const Timeout* timeout) override; | 57 Status Load(const std::string& url, const Timeout* timeout) override; |
55 Status Reload(const Timeout* timeout) override; | 58 Status Reload(const Timeout* timeout) override; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 bool* is_not_pending); | 125 bool* is_not_pending); |
123 | 126 |
124 Status InitProfileInternal(); | 127 Status InitProfileInternal(); |
125 Status StopProfileInternal(); | 128 Status StopProfileInternal(); |
126 | 129 |
127 std::string id_; | 130 std::string id_; |
128 const BrowserInfo* browser_info_; | 131 const BrowserInfo* browser_info_; |
129 std::unique_ptr<DomTracker> dom_tracker_; | 132 std::unique_ptr<DomTracker> dom_tracker_; |
130 std::unique_ptr<FrameTracker> frame_tracker_; | 133 std::unique_ptr<FrameTracker> frame_tracker_; |
131 std::unique_ptr<JavaScriptDialogManager> dialog_manager_; | 134 std::unique_ptr<JavaScriptDialogManager> dialog_manager_; |
132 std::unique_ptr<NavigationTracker> navigation_tracker_; | 135 std::unique_ptr<PageLoadStrategy> navigation_tracker_; |
133 std::unique_ptr<MobileEmulationOverrideManager> | 136 std::unique_ptr<MobileEmulationOverrideManager> |
134 mobile_emulation_override_manager_; | 137 mobile_emulation_override_manager_; |
135 std::unique_ptr<GeolocationOverrideManager> geolocation_override_manager_; | 138 std::unique_ptr<GeolocationOverrideManager> geolocation_override_manager_; |
136 std::unique_ptr<NetworkConditionsOverrideManager> | 139 std::unique_ptr<NetworkConditionsOverrideManager> |
137 network_conditions_override_manager_; | 140 network_conditions_override_manager_; |
138 std::unique_ptr<HeapSnapshotTaker> heap_snapshot_taker_; | 141 std::unique_ptr<HeapSnapshotTaker> heap_snapshot_taker_; |
139 std::unique_ptr<DebuggerTracker> debugger_; | 142 std::unique_ptr<DebuggerTracker> debugger_; |
140 std::unique_ptr<DevToolsClient> client_; | 143 std::unique_ptr<DevToolsClient> client_; |
141 }; | 144 }; |
142 | 145 |
(...skipping 22 matching lines...) Expand all Loading... |
165 Status GetNodeIdFromFunction(DevToolsClient* client, | 168 Status GetNodeIdFromFunction(DevToolsClient* client, |
166 int context_id, | 169 int context_id, |
167 const std::string& function, | 170 const std::string& function, |
168 const base::ListValue& args, | 171 const base::ListValue& args, |
169 bool* found_node, | 172 bool* found_node, |
170 int* node_id); | 173 int* node_id); |
171 | 174 |
172 } // namespace internal | 175 } // namespace internal |
173 | 176 |
174 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ | 177 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
OLD | NEW |