OLD | NEW |
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_CHROME_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "chrome/test/chromedriver/chrome/chrome.h" | 15 #include "chrome/test/chromedriver/chrome/chrome.h" |
16 | 16 |
17 class AutomationExtension; | |
18 struct BrowserInfo; | 17 struct BrowserInfo; |
19 class DevToolsClient; | 18 class DevToolsClient; |
20 class DevToolsEventListener; | 19 class DevToolsEventListener; |
21 class DevToolsHttpClient; | 20 class DevToolsHttpClient; |
22 class JavaScriptDialogManager; | |
23 class PortReservation; | 21 class PortReservation; |
24 class Status; | 22 class Status; |
25 class WebView; | 23 class WebView; |
26 class WebViewImpl; | 24 class WebViewImpl; |
27 struct WebViewInfo; | |
28 class WebViewsInfo; | 25 class WebViewsInfo; |
29 | 26 |
30 class ChromeImpl : public Chrome { | 27 class ChromeImpl : public Chrome { |
31 public: | 28 public: |
32 ~ChromeImpl() override; | 29 ~ChromeImpl() override; |
33 | 30 |
34 // Overridden from Chrome: | 31 // Overridden from Chrome: |
35 Status GetAsDesktop(ChromeDesktopImpl** desktop) override; | 32 Status GetAsDesktop(ChromeDesktopImpl** desktop) override; |
36 const BrowserInfo* GetBrowserInfo() const override; | 33 const BrowserInfo* GetBrowserInfo() const override; |
37 bool HasCrashedWebView() override; | 34 bool HasCrashedWebView() override; |
(...skipping 26 matching lines...) Expand all Loading... |
64 void UpdateWebViews(const WebViewsInfo& views_info); | 61 void UpdateWebViews(const WebViewsInfo& views_info); |
65 | 62 |
66 // Web views in this list are in the same order as they are opened. | 63 // Web views in this list are in the same order as they are opened. |
67 WebViewList web_views_; | 64 WebViewList web_views_; |
68 ScopedVector<DevToolsEventListener> devtools_event_listeners_; | 65 ScopedVector<DevToolsEventListener> devtools_event_listeners_; |
69 std::unique_ptr<PortReservation> port_reservation_; | 66 std::unique_ptr<PortReservation> port_reservation_; |
70 std::string page_load_strategy_; | 67 std::string page_load_strategy_; |
71 }; | 68 }; |
72 | 69 |
73 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ | 70 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_IMPL_H_ |
OLD | NEW |