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

Side by Side Diff: chrome/test/webdriver/webdriver_server.cc

Issue 8649004: Allow chromedriver to install an extension and get all installed extension IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years 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) 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
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<ViewsCommand>("/session/*/chrome/views");
147 148
148 // Since the /session/* is a wild card that would match the above URIs, this 149 // Since the /session/* is a wild card that would match the above URIs, this
149 // line MUST be after all other webdriver command callbacks. 150 // line MUST be after all other webdriver command callbacks.
150 dispatcher->Add<SessionWithID>("/session/*"); 151 dispatcher->Add<SessionWithID>("/session/*");
151 152
152 if (forbid_other_requests) 153 if (forbid_other_requests)
153 dispatcher->ForbidAllOtherRequests(); 154 dispatcher->ForbidAllOtherRequests();
154 } 155 }
155 156
156 } // namespace webdriver 157 } // namespace webdriver
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 << "port=" << port << std::endl 276 << "port=" << port << std::endl
276 << "version=" << chrome::kChromeVersion << std::endl; 277 << "version=" << chrome::kChromeVersion << std::endl;
277 278
278 // Run until we receive command to shutdown. 279 // Run until we receive command to shutdown.
279 // Don't call mg_stop because mongoose will hang if clients are still 280 // Don't call mg_stop because mongoose will hang if clients are still
280 // connected when keep-alive is enabled. 281 // connected when keep-alive is enabled.
281 shutdown_event.Wait(); 282 shutdown_event.Wait();
282 283
283 return (EXIT_SUCCESS); 284 return (EXIT_SUCCESS);
284 } 285 }
OLDNEW
« no previous file with comments | « chrome/test/webdriver/webdriver_automation.cc ('k') | chrome/test/webdriver/webdriver_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698