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

Side by Side Diff: chrome/test/webdriver/commands/navigate_commands.h

Issue 10834004: Correct const accessors in base/values.(h|cc) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: One more, Windows-only Created 8 years, 4 months 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
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 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_NAVIGATE_COMMANDS_H_ 5 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_NAVIGATE_COMMANDS_H_
6 #define CHROME_TEST_WEBDRIVER_COMMANDS_NAVIGATE_COMMANDS_H_ 6 #define CHROME_TEST_WEBDRIVER_COMMANDS_NAVIGATE_COMMANDS_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 // Navigate forward in the browser history, if possible. See: 17 // Navigate forward in the browser history, if possible. See:
18 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/f orward 18 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/f orward
19 class ForwardCommand : public WebDriverCommand { 19 class ForwardCommand : public WebDriverCommand {
20 public: 20 public:
21 ForwardCommand(const std::vector<std::string>& path_segments, 21 ForwardCommand(const std::vector<std::string>& path_segments,
22 const DictionaryValue* const parameters); 22 DictionaryValue* const parameters);
23 virtual ~ForwardCommand(); 23 virtual ~ForwardCommand();
24 24
25 virtual bool DoesPost() OVERRIDE; 25 virtual bool DoesPost() OVERRIDE;
26 virtual void ExecutePost(Response* const response) OVERRIDE; 26 virtual void ExecutePost(Response* const response) OVERRIDE;
27 27
28 private: 28 private:
29 DISALLOW_COPY_AND_ASSIGN(ForwardCommand); 29 DISALLOW_COPY_AND_ASSIGN(ForwardCommand);
30 }; 30 };
31 31
32 // Navigate backwards in the browser history, if possible. See: 32 // Navigate backwards in the browser history, if possible. See:
33 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/b ack 33 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/b ack
34 class BackCommand : public WebDriverCommand { 34 class BackCommand : public WebDriverCommand {
35 public: 35 public:
36 BackCommand(const std::vector<std::string>& path_segments, 36 BackCommand(const std::vector<std::string>& path_segments,
37 const DictionaryValue* const parameters); 37 DictionaryValue* const parameters);
38 virtual ~BackCommand(); 38 virtual ~BackCommand();
39 39
40 virtual bool DoesPost() OVERRIDE; 40 virtual bool DoesPost() OVERRIDE;
41 virtual void ExecutePost(Response* const response) OVERRIDE; 41 virtual void ExecutePost(Response* const response) OVERRIDE;
42 42
43 private: 43 private:
44 DISALLOW_COPY_AND_ASSIGN(BackCommand); 44 DISALLOW_COPY_AND_ASSIGN(BackCommand);
45 }; 45 };
46 46
47 // Performs a reload on the current page. See: 47 // Performs a reload on the current page. See:
48 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/r efresh 48 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/r efresh
49 class RefreshCommand : public WebDriverCommand { 49 class RefreshCommand : public WebDriverCommand {
50 public: 50 public:
51 RefreshCommand(const std::vector<std::string>& path_segments, 51 RefreshCommand(const std::vector<std::string>& path_segments,
52 const DictionaryValue* const parameters); 52 DictionaryValue* const parameters);
53 virtual ~RefreshCommand(); 53 virtual ~RefreshCommand();
54 54
55 virtual bool DoesPost() OVERRIDE; 55 virtual bool DoesPost() OVERRIDE;
56 virtual void ExecutePost(Response* const response) OVERRIDE; 56 virtual void ExecutePost(Response* const response) OVERRIDE;
57 57
58 private: 58 private:
59 DISALLOW_COPY_AND_ASSIGN(RefreshCommand); 59 DISALLOW_COPY_AND_ASSIGN(RefreshCommand);
60 }; 60 };
61 61
62 } // namespace webdriver 62 } // namespace webdriver
63 63
64 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_NAVIGATE_COMMANDS_H_ 64 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_NAVIGATE_COMMANDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698