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