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

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

Issue 8806030: Add commands to Chrome WebDriver for installing and manipulating extensions. (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<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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698