OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SERVER_HTTP_HANDLER_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_SERVER_HTTP_HANDLER_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_SERVER_HTTP_HANDLER_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_SERVER_HTTP_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 std::string url_base_; | 104 std::string url_base_; |
105 bool received_shutdown_; | 105 bool received_shutdown_; |
106 scoped_refptr<URLRequestContextGetter> context_getter_; | 106 scoped_refptr<URLRequestContextGetter> context_getter_; |
107 SyncWebSocketFactory socket_factory_; | 107 SyncWebSocketFactory socket_factory_; |
108 SessionThreadMap session_thread_map_; | 108 SessionThreadMap session_thread_map_; |
109 scoped_ptr<CommandMap> command_map_; | 109 scoped_ptr<CommandMap> command_map_; |
110 scoped_ptr<Adb> adb_; | 110 scoped_ptr<Adb> adb_; |
111 scoped_ptr<DeviceManager> device_manager_; | 111 scoped_ptr<DeviceManager> device_manager_; |
112 scoped_ptr<PortServer> port_server_; | 112 scoped_ptr<PortServer> port_server_; |
113 scoped_ptr<PortManager> port_manager_; | 113 scoped_ptr<PortManager> port_manager_; |
| 114 scoped_ptr<PortManager> port_manager_android_; |
114 | 115 |
115 base::WeakPtrFactory<HttpHandler> weak_ptr_factory_; | 116 base::WeakPtrFactory<HttpHandler> weak_ptr_factory_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(HttpHandler); | 118 DISALLOW_COPY_AND_ASSIGN(HttpHandler); |
118 }; | 119 }; |
119 | 120 |
120 namespace internal { | 121 namespace internal { |
121 | 122 |
122 extern const char kNewSessionPathPattern[]; | 123 extern const char kNewSessionPathPattern[]; |
123 | 124 |
124 bool MatchesCommand(const std::string& method, | 125 bool MatchesCommand(const std::string& method, |
125 const std::string& path, | 126 const std::string& path, |
126 const CommandMapping& command, | 127 const CommandMapping& command, |
127 std::string* session_id, | 128 std::string* session_id, |
128 base::DictionaryValue* out_params); | 129 base::DictionaryValue* out_params); |
129 | 130 |
130 } // namespace internal | 131 } // namespace internal |
131 | 132 |
132 #endif // CHROME_TEST_CHROMEDRIVER_SERVER_HTTP_HANDLER_H_ | 133 #endif // CHROME_TEST_CHROMEDRIVER_SERVER_HTTP_HANDLER_H_ |
OLD | NEW |