| 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_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 <map> | 9 #include <map> |
| 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/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "chrome/test/chromedriver/chrome.h" | 15 #include "chrome/test/chromedriver/chrome.h" |
| 16 #include "chrome/test/chromedriver/net/sync_websocket_factory.h" | 16 #include "chrome/test/chromedriver/net/sync_websocket_factory.h" |
| 17 #include "chrome/test/chromedriver/web_view_delegate.h" | 17 #include "chrome/test/chromedriver/web_view_delegate.h" |
| 18 | 18 |
| 19 namespace base { |
| 20 class ListValue; |
| 21 } |
| 22 |
| 19 class Status; | 23 class Status; |
| 20 class URLRequestContextGetter; | 24 class URLRequestContextGetter; |
| 21 class WebView; | 25 class WebView; |
| 22 class WebViewImpl; | 26 class WebViewImpl; |
| 23 | 27 |
| 24 class ChromeImpl : public Chrome, public WebViewDelegate { | 28 class ChromeImpl : public Chrome, public WebViewDelegate { |
| 25 public: | 29 public: |
| 26 ChromeImpl(URLRequestContextGetter* context_getter, | 30 ChromeImpl(URLRequestContextGetter* context_getter, |
| 27 int port, | 31 int port, |
| 28 const SyncWebSocketFactory& socket_factory); | 32 const SyncWebSocketFactory& socket_factory); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 42 typedef std::map<std::string, linked_ptr<WebViewImpl> > WebViewMap; | 46 typedef std::map<std::string, linked_ptr<WebViewImpl> > WebViewMap; |
| 43 | 47 |
| 44 scoped_refptr<URLRequestContextGetter> context_getter_; | 48 scoped_refptr<URLRequestContextGetter> context_getter_; |
| 45 int port_; | 49 int port_; |
| 46 SyncWebSocketFactory socket_factory_; | 50 SyncWebSocketFactory socket_factory_; |
| 47 WebViewMap web_view_map_; | 51 WebViewMap web_view_map_; |
| 48 }; | 52 }; |
| 49 | 53 |
| 50 namespace internal { | 54 namespace internal { |
| 51 | 55 |
| 52 Status ParsePagesInfo(const std::string& data, | 56 Status ParsePagesInfo(std::list<std::string>* page_ids, |
| 53 std::list<std::string>* page_ids); | 57 base::ListValue* page_info_list); |
| 58 |
| 59 Status ParseDevToolsInfo(std::list<std::string>* page_devtools_ids, |
| 60 std::list<std::string>* frontend_devtools_ids, |
| 61 base::ListValue* page_info_list); |
| 62 |
| 63 Status CheckPageDebuggerUrl(const std::string& page_id, |
| 64 bool* has_debugger_url, |
| 65 base::ListValue* page_info_list); |
| 54 | 66 |
| 55 } // namespace internal | 67 } // namespace internal |
| 56 | 68 |
| 57 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_ | 69 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_ |
| OLD | NEW |