| 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> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 scoped_refptr<URLRequestContextGetter> context_getter_; | 54 scoped_refptr<URLRequestContextGetter> context_getter_; |
| 55 int port_; | 55 int port_; |
| 56 SyncWebSocketFactory socket_factory_; | 56 SyncWebSocketFactory socket_factory_; |
| 57 std::string version_; | 57 std::string version_; |
| 58 int build_no_; | 58 int build_no_; |
| 59 WebViewMap web_view_map_; | 59 WebViewMap web_view_map_; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 namespace internal { | 62 namespace internal { |
| 63 | 63 |
| 64 struct WebViewInfo { |
| 65 enum Type { |
| 66 kPage, |
| 67 kOther |
| 68 }; |
| 69 |
| 70 WebViewInfo(const std::string& id, |
| 71 const std::string& debugger_url, |
| 72 const std::string& url, |
| 73 Type type); |
| 74 |
| 75 bool IsFrontend() const; |
| 76 |
| 77 std::string id; |
| 78 std::string debugger_url; |
| 79 std::string url; |
| 80 Type type; |
| 81 }; |
| 82 |
| 64 Status ParsePagesInfo(const std::string& data, | 83 Status ParsePagesInfo(const std::string& data, |
| 65 std::list<std::string>* page_ids); | 84 std::list<WebViewInfo>* info_list); |
| 85 |
| 66 Status ParseVersionInfo(const std::string& data, | 86 Status ParseVersionInfo(const std::string& data, |
| 67 std::string* version); | 87 std::string* version); |
| 68 | 88 |
| 69 } // namespace internal | 89 } // namespace internal |
| 70 | 90 |
| 71 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_ | 91 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_ |
| OLD | NEW |