Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: chrome/test/chromedriver/chrome_impl.h

Issue 12321057: [chromedriver] Implement reconnection to DevTools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/chromedriver/chrome_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/chromedriver/chrome_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698