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

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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/chromedriver/chrome_impl.cc » ('j') | chrome/test/chromedriver/chrome_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698