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

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

Issue 23526047: Delete old chromedriver code, and remove mongoose webserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_CHROME_COMMANDS_H_
6 #define CHROME_TEST_WEBDRIVER_COMMANDS_CHROME_COMMANDS_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/compiler_specific.h"
12 #include "chrome/test/webdriver/commands/webdriver_command.h"
13
14 namespace base {
15 class DictionaryValue;
16 }
17
18 namespace webdriver {
19
20 class Response;
21
22 // Commands dealing with the extensions system.
23 class ExtensionsCommand : public WebDriverCommand {
24 public:
25 ExtensionsCommand(const std::vector<std::string>& path_segments,
26 const base::DictionaryValue* const parameters);
27 virtual ~ExtensionsCommand();
28
29 virtual bool DoesGet() OVERRIDE;
30 virtual bool DoesPost() OVERRIDE;
31
32 // Returns all installed extensions.
33 virtual void ExecuteGet(Response* const response) OVERRIDE;
34
35 // Installs an extension.
36 virtual void ExecutePost(Response* const response) OVERRIDE;
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(ExtensionsCommand);
40 };
41
42 // Commands dealing with a particular extension.
43 class ExtensionCommand : public WebDriverCommand {
44 public:
45 ExtensionCommand(const std::vector<std::string>& path_segments,
46 const base::DictionaryValue* const parameters);
47 virtual ~ExtensionCommand();
48
49 virtual bool Init(Response* const response) OVERRIDE;
50
51 virtual bool DoesGet() OVERRIDE;
52 virtual bool DoesPost() OVERRIDE;
53 virtual bool DoesDelete() OVERRIDE;
54
55 // Returns information about the extension.
56 virtual void ExecuteGet(Response* const response) OVERRIDE;
57
58 // Modifies the extension.
59 virtual void ExecutePost(Response* const response) OVERRIDE;
60
61 // Uninstalls the extension.
62 virtual void ExecuteDelete(Response* const response) OVERRIDE;
63
64 private:
65 std::string extension_id_;
66
67 DISALLOW_COPY_AND_ASSIGN(ExtensionCommand);
68 };
69
70 // Commands dealing with targeting non-tab views.
71 class ViewsCommand : public WebDriverCommand {
72 public:
73 ViewsCommand(const std::vector<std::string>& path_segments,
74 const base::DictionaryValue* const parameters);
75 virtual ~ViewsCommand();
76
77 virtual bool DoesGet() OVERRIDE;
78
79 // Returns all open views.
80 virtual void ExecuteGet(Response* const response) OVERRIDE;
81
82 private:
83 DISALLOW_COPY_AND_ASSIGN(ViewsCommand);
84 };
85
86 #if !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS))
87 class HeapProfilerDumpCommand : public WebDriverCommand {
88 public:
89 HeapProfilerDumpCommand(const std::vector<std::string>& path_segments,
90 const base::DictionaryValue* const parameters);
91 virtual ~HeapProfilerDumpCommand();
92
93 virtual bool DoesPost() OVERRIDE;
94 virtual void ExecutePost(Response* const response) OVERRIDE;
95
96 private:
97 DISALLOW_COPY_AND_ASSIGN(HeapProfilerDumpCommand);
98 };
99 #endif // !defined(NO_TCMALLOC) && (defined(OS_LINUX) || defined(OS_CHROMEOS))
100
101 } // namespace webdriver
102
103 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_CHROME_COMMANDS_H_
OLDNEW
« no previous file with comments | « chrome/test/webdriver/commands/browser_connection_commands.cc ('k') | chrome/test/webdriver/commands/chrome_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698