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 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_URL_COMMAND_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_URL_COMMAND_H_ |
6 #define CHROME_TEST_WEBDRIVER_COMMANDS_URL_COMMAND_H_ | 6 #define CHROME_TEST_WEBDRIVER_COMMANDS_URL_COMMAND_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/test/webdriver/commands/webdriver_command.h" | 11 #include "chrome/test/webdriver/commands/webdriver_command.h" |
12 | 12 |
13 namespace webdriver { | 13 namespace webdriver { |
14 | 14 |
15 class Response; | 15 class Response; |
16 | 16 |
17 // Controls navigate to new web pages for the current tab. A call with | 17 // Controls navigate to new web pages for the current tab. A call with |
18 // and HTTP GET will return the URL of the tab. See: | 18 // and HTTP GET will return the URL of the tab. See: |
19 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/u
rl | 19 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/u
rl |
20 class URLCommand : public WebDriverCommand { | 20 class URLCommand : public WebDriverCommand { |
21 public: | 21 public: |
22 URLCommand(const std::vector<std::string>& path_segments, | 22 URLCommand(const std::vector<std::string>& path_segments, |
23 const DictionaryValue* const parameters); | 23 DictionaryValue* const parameters); |
24 virtual ~URLCommand(); | 24 virtual ~URLCommand(); |
25 | 25 |
26 virtual bool DoesGet() OVERRIDE; | 26 virtual bool DoesGet() OVERRIDE; |
27 virtual bool DoesPost() OVERRIDE; | 27 virtual bool DoesPost() OVERRIDE; |
28 virtual void ExecuteGet(Response* const response) OVERRIDE; | 28 virtual void ExecuteGet(Response* const response) OVERRIDE; |
29 virtual void ExecutePost(Response* const response) OVERRIDE; | 29 virtual void ExecutePost(Response* const response) OVERRIDE; |
30 | 30 |
31 private: | 31 private: |
32 DISALLOW_COPY_AND_ASSIGN(URLCommand); | 32 DISALLOW_COPY_AND_ASSIGN(URLCommand); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace webdriver | 35 } // namespace webdriver |
36 | 36 |
37 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_URL_COMMAND_H_ | 37 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_URL_COMMAND_H_ |
OLD | NEW |