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 23 matching lines...) Expand all Loading... |
34 class PageLoadStrategy; | 34 class PageLoadStrategy; |
35 class Status; | 35 class Status; |
36 | 36 |
37 class WebViewImpl : public WebView { | 37 class WebViewImpl : public WebView { |
38 public: | 38 public: |
39 WebViewImpl(const std::string& id, | 39 WebViewImpl(const std::string& id, |
40 const bool w3c_compliant, | 40 const bool w3c_compliant, |
41 const BrowserInfo* browser_info, | 41 const BrowserInfo* browser_info, |
42 std::unique_ptr<DevToolsClient> client, | 42 std::unique_ptr<DevToolsClient> client, |
43 const DeviceMetrics* device_metrics, | 43 const DeviceMetrics* device_metrics, |
44 std::string page_load_strategy); | 44 std::string page_load_strategy, |
| 45 std::string user_agent); |
45 ~WebViewImpl() override; | 46 ~WebViewImpl() override; |
46 | 47 |
47 // Overridden from WebView: | 48 // Overridden from WebView: |
48 std::string GetId() override; | 49 std::string GetId() override; |
49 bool WasCrashed() override; | 50 bool WasCrashed() override; |
50 Status ConnectIfNecessary() override; | 51 Status ConnectIfNecessary() override; |
51 Status HandleReceivedEvents() override; | 52 Status HandleReceivedEvents() override; |
52 Status GetUrl(std::string* url) override; | 53 Status GetUrl(std::string* url) override; |
53 Status Load(const std::string& url, const Timeout* timeout) override; | 54 Status Load(const std::string& url, const Timeout* timeout) override; |
54 Status Reload(const Timeout* timeout) override; | 55 Status Reload(const Timeout* timeout) override; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 int context_id, | 171 int context_id, |
171 const std::string& function, | 172 const std::string& function, |
172 const base::ListValue& args, | 173 const base::ListValue& args, |
173 bool* found_node, | 174 bool* found_node, |
174 int* node_id, | 175 int* node_id, |
175 bool w3c_compliant); | 176 bool w3c_compliant); |
176 | 177 |
177 } // namespace internal | 178 } // namespace internal |
178 | 179 |
179 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ | 180 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_WEB_VIEW_IMPL_H_ |
OLD | NEW |