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

Side by Side Diff: chrome/test/webdriver/commands/html5_storage_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, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_HTML5_STORAGE_COMMANDS_H_ 5 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_HTML5_STORAGE_COMMANDS_H_
6 #define CHROME_TEST_WEBDRIVER_COMMANDS_HTML5_STORAGE_COMMANDS_H_ 6 #define CHROME_TEST_WEBDRIVER_COMMANDS_HTML5_STORAGE_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 base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 } 15 }
16 16
17 namespace webdriver { 17 namespace webdriver {
18 18
19 class Response; 19 class Response;
20 20
21 class LocalStorageCommand : public WebDriverCommand { 21 class LocalStorageCommand : public WebDriverCommand {
22 public: 22 public:
23 LocalStorageCommand(const std::vector<std::string>& path_segments, 23 LocalStorageCommand(const std::vector<std::string>& path_segments,
24 const base::DictionaryValue* const parameters); 24 base::DictionaryValue* const parameters);
25 virtual ~LocalStorageCommand(); 25 virtual ~LocalStorageCommand();
26 26
27 virtual bool DoesGet() OVERRIDE; 27 virtual bool DoesGet() OVERRIDE;
28 virtual bool DoesPost() OVERRIDE; 28 virtual bool DoesPost() OVERRIDE;
29 virtual bool DoesDelete() OVERRIDE; 29 virtual bool DoesDelete() OVERRIDE;
30 30
31 // Returns the list of all keys in the HTML5 localStorage object. 31 // Returns the list of all keys in the HTML5 localStorage object.
32 virtual void ExecuteGet(Response* const response) OVERRIDE; 32 virtual void ExecuteGet(Response* const response) OVERRIDE;
33 33
34 // Sets the value of an item in the HTML5 localStorage. 34 // Sets the value of an item in the HTML5 localStorage.
35 virtual void ExecutePost(Response* const response) OVERRIDE; 35 virtual void ExecutePost(Response* const response) OVERRIDE;
36 36
37 // Deletes all items from the localStorage object. 37 // Deletes all items from the localStorage object.
38 virtual void ExecuteDelete(Response* const response) OVERRIDE; 38 virtual void ExecuteDelete(Response* const response) OVERRIDE;
39 39
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(LocalStorageCommand); 41 DISALLOW_COPY_AND_ASSIGN(LocalStorageCommand);
42 }; 42 };
43 43
44 class LocalStorageKeyCommand : public WebDriverCommand { 44 class LocalStorageKeyCommand : public WebDriverCommand {
45 public: 45 public:
46 LocalStorageKeyCommand(const std::vector<std::string>& path_segments, 46 LocalStorageKeyCommand(const std::vector<std::string>& path_segments,
47 const base::DictionaryValue* const parameters); 47 base::DictionaryValue* const parameters);
48 virtual ~LocalStorageKeyCommand(); 48 virtual ~LocalStorageKeyCommand();
49 49
50 virtual bool DoesGet() OVERRIDE; 50 virtual bool DoesGet() OVERRIDE;
51 virtual bool DoesDelete() OVERRIDE; 51 virtual bool DoesDelete() OVERRIDE;
52 52
53 // Returns the value of an item in the HTML5 localStorage. 53 // Returns the value of an item in the HTML5 localStorage.
54 virtual void ExecuteGet(Response* const response) OVERRIDE; 54 virtual void ExecuteGet(Response* const response) OVERRIDE;
55 55
56 // Deletes an item in the HTML5 localStorage and returns the value. 56 // Deletes an item in the HTML5 localStorage and returns the value.
57 virtual void ExecuteDelete(Response* const response) OVERRIDE; 57 virtual void ExecuteDelete(Response* const response) OVERRIDE;
58 58
59 private: 59 private:
60 DISALLOW_COPY_AND_ASSIGN(LocalStorageKeyCommand); 60 DISALLOW_COPY_AND_ASSIGN(LocalStorageKeyCommand);
61 }; 61 };
62 62
63 class LocalStorageSizeCommand : public WebDriverCommand { 63 class LocalStorageSizeCommand : public WebDriverCommand {
64 public: 64 public:
65 LocalStorageSizeCommand(const std::vector<std::string>& path_segments, 65 LocalStorageSizeCommand(const std::vector<std::string>& path_segments,
66 const base::DictionaryValue* const parameters); 66 base::DictionaryValue* const parameters);
67 virtual ~LocalStorageSizeCommand(); 67 virtual ~LocalStorageSizeCommand();
68 68
69 virtual bool DoesGet() OVERRIDE; 69 virtual bool DoesGet() OVERRIDE;
70 70
71 // Returns the size of the HTML5 localStorage object. 71 // Returns the size of the HTML5 localStorage object.
72 virtual void ExecuteGet(Response* const response) OVERRIDE; 72 virtual void ExecuteGet(Response* const response) OVERRIDE;
73 73
74 private: 74 private:
75 DISALLOW_COPY_AND_ASSIGN(LocalStorageSizeCommand); 75 DISALLOW_COPY_AND_ASSIGN(LocalStorageSizeCommand);
76 }; 76 };
(...skipping 17 matching lines...) Expand all
94 // Deletes all items from the sessionStorage object. 94 // Deletes all items from the sessionStorage object.
95 virtual void ExecuteDelete(Response* const response) OVERRIDE; 95 virtual void ExecuteDelete(Response* const response) OVERRIDE;
96 96
97 private: 97 private:
98 DISALLOW_COPY_AND_ASSIGN(SessionStorageCommand); 98 DISALLOW_COPY_AND_ASSIGN(SessionStorageCommand);
99 }; 99 };
100 100
101 class SessionStorageKeyCommand : public WebDriverCommand { 101 class SessionStorageKeyCommand : public WebDriverCommand {
102 public: 102 public:
103 SessionStorageKeyCommand(const std::vector<std::string>& path_segments, 103 SessionStorageKeyCommand(const std::vector<std::string>& path_segments,
104 const base::DictionaryValue* const parameters); 104 base::DictionaryValue* const parameters);
105 virtual ~SessionStorageKeyCommand(); 105 virtual ~SessionStorageKeyCommand();
106 106
107 virtual bool DoesGet() OVERRIDE; 107 virtual bool DoesGet() OVERRIDE;
108 virtual bool DoesDelete() OVERRIDE; 108 virtual bool DoesDelete() OVERRIDE;
109 109
110 // Returns the value of an item in the HTML5 sessionStorage. 110 // Returns the value of an item in the HTML5 sessionStorage.
111 virtual void ExecuteGet(Response* const response) OVERRIDE; 111 virtual void ExecuteGet(Response* const response) OVERRIDE;
112 112
113 // Deletes an item in the HTML5 sessionStorage and returns the value. 113 // Deletes an item in the HTML5 sessionStorage and returns the value.
114 virtual void ExecuteDelete(Response* const response) OVERRIDE; 114 virtual void ExecuteDelete(Response* const response) OVERRIDE;
115 115
116 private: 116 private:
117 DISALLOW_COPY_AND_ASSIGN(SessionStorageKeyCommand); 117 DISALLOW_COPY_AND_ASSIGN(SessionStorageKeyCommand);
118 }; 118 };
119 119
120 class SessionStorageSizeCommand : public WebDriverCommand { 120 class SessionStorageSizeCommand : public WebDriverCommand {
121 public: 121 public:
122 SessionStorageSizeCommand(const std::vector<std::string>& path_segments, 122 SessionStorageSizeCommand(const std::vector<std::string>& path_segments,
123 const base::DictionaryValue* const parameters); 123 base::DictionaryValue* const parameters);
124 virtual ~SessionStorageSizeCommand(); 124 virtual ~SessionStorageSizeCommand();
125 125
126 virtual bool DoesGet() OVERRIDE; 126 virtual bool DoesGet() OVERRIDE;
127 127
128 // Returns the size of the HTML5 sessionStorage object. 128 // Returns the size of the HTML5 sessionStorage object.
129 virtual void ExecuteGet(Response* const response) OVERRIDE; 129 virtual void ExecuteGet(Response* const response) OVERRIDE;
130 130
131 private: 131 private:
132 DISALLOW_COPY_AND_ASSIGN(SessionStorageSizeCommand); 132 DISALLOW_COPY_AND_ASSIGN(SessionStorageSizeCommand);
133 }; 133 };
134 134
135 } // namespace webdriver 135 } // namespace webdriver
136 136
137 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_HTML5_STORAGE_COMMANDS_H_ 137 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_HTML5_STORAGE_COMMANDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698