OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <signal.h> | 5 #include <signal.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 | 7 |
8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 "/session/*/timeouts/async_script"); | 135 "/session/*/timeouts/async_script"); |
136 dispatcher->Add<ImplicitWaitCommand>( "/session/*/timeouts/implicit_wait"); | 136 dispatcher->Add<ImplicitWaitCommand>( "/session/*/timeouts/implicit_wait"); |
137 | 137 |
138 // Cookie functions. | 138 // Cookie functions. |
139 dispatcher->Add<CookieCommand>( "/session/*/cookie"); | 139 dispatcher->Add<CookieCommand>( "/session/*/cookie"); |
140 dispatcher->Add<NamedCookieCommand>("/session/*/cookie/*"); | 140 dispatcher->Add<NamedCookieCommand>("/session/*/cookie/*"); |
141 | 141 |
142 dispatcher->Add<BrowserConnectionCommand>("/session/*/browser_connection"); | 142 dispatcher->Add<BrowserConnectionCommand>("/session/*/browser_connection"); |
143 dispatcher->Add<AppCacheStatusCommand>("/session/*/application_cache/status"); | 143 dispatcher->Add<AppCacheStatusCommand>("/session/*/application_cache/status"); |
144 | 144 |
145 // Chrome-specific command. | 145 // Chrome-specific commands. |
146 dispatcher->Add<ExtensionsCommand>("/session/*/chrome/extensions"); | 146 dispatcher->Add<ExtensionsCommand>("/session/*/chrome/extensions"); |
| 147 dispatcher->Add<ExtensionCommand>("/session/*/chrome/extension/*"); |
| 148 dispatcher->Add<ViewsCommand>("/session/*/chrome/views"); |
147 | 149 |
148 // Since the /session/* is a wild card that would match the above URIs, this | 150 // Since the /session/* is a wild card that would match the above URIs, this |
149 // line MUST be after all other webdriver command callbacks. | 151 // line MUST be after all other webdriver command callbacks. |
150 dispatcher->Add<SessionWithID>("/session/*"); | 152 dispatcher->Add<SessionWithID>("/session/*"); |
151 | 153 |
152 if (forbid_other_requests) | 154 if (forbid_other_requests) |
153 dispatcher->ForbidAllOtherRequests(); | 155 dispatcher->ForbidAllOtherRequests(); |
154 } | 156 } |
155 | 157 |
156 } // namespace webdriver | 158 } // namespace webdriver |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 << "port=" << port << std::endl | 277 << "port=" << port << std::endl |
276 << "version=" << chrome::kChromeVersion << std::endl; | 278 << "version=" << chrome::kChromeVersion << std::endl; |
277 | 279 |
278 // Run until we receive command to shutdown. | 280 // Run until we receive command to shutdown. |
279 // Don't call mg_stop because mongoose will hang if clients are still | 281 // Don't call mg_stop because mongoose will hang if clients are still |
280 // connected when keep-alive is enabled. | 282 // connected when keep-alive is enabled. |
281 shutdown_event.Wait(); | 283 shutdown_event.Wait(); |
282 | 284 |
283 return (EXIT_SUCCESS); | 285 return (EXIT_SUCCESS); |
284 } | 286 } |
OLD | NEW |