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

Side by Side Diff: chrome/test/chromedriver/session_commands.h

Issue 15393005: [chromedriver] Remove unnecessary round trips to Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CHROMEDRIVER_SESSION_COMMANDS_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_
6 #define CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ 6 #define CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/test/chromedriver/session_map.h" 12 #include "chrome/test/chromedriver/session_map.h"
13 13
14 namespace base { 14 namespace base {
15 class DictionaryValue; 15 class DictionaryValue;
16 class Value; 16 class Value;
17 } 17 }
18 18
19 struct Session; 19 struct Session;
20 class Status; 20 class Status;
21 class WebView;
22 21
23 typedef base::Callback<Status( 22 typedef base::Callback<Status(
24 Session* session, 23 Session* session,
25 const base::DictionaryValue&, 24 const base::DictionaryValue&,
26 scoped_ptr<base::Value>*)> SessionCommand; 25 scoped_ptr<base::Value>*)> SessionCommand;
27 26
28 // Executes a given session command, after acquiring access to the appropriate 27 // Executes a given session command, after acquiring access to the appropriate
29 // session. 28 // session.
30 Status ExecuteSessionCommand( 29 Status ExecuteSessionCommand(
31 SessionMap* session_map, 30 SessionMap* session_map,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 Session* session, 87 Session* session,
89 const base::DictionaryValue& params, 88 const base::DictionaryValue& params,
90 scoped_ptr<base::Value>* value); 89 scoped_ptr<base::Value>* value);
91 90
92 // Set the amount of time the driver should wait when searching for elements. 91 // Set the amount of time the driver should wait when searching for elements.
93 Status ExecuteImplicitlyWait( 92 Status ExecuteImplicitlyWait(
94 Session* session, 93 Session* session,
95 const base::DictionaryValue& params, 94 const base::DictionaryValue& params,
96 scoped_ptr<base::Value>* value); 95 scoped_ptr<base::Value>* value);
97 96
98 // Executes an alert command.
99 Status ExecuteAlertCommand(
100 const SessionCommand& alert_command,
101 Session* session,
102 const base::DictionaryValue& params,
103 scoped_ptr<base::Value>* value);
104
105 // Returns whether an alert is open.
106 Status ExecuteGetAlert(
107 Session* session,
108 const base::DictionaryValue& params,
109 scoped_ptr<base::Value>* value);
110
111 // Returns the text of the open alert.
112 Status ExecuteGetAlertText(
113 Session* session,
114 const base::DictionaryValue& params,
115 scoped_ptr<base::Value>* value);
116
117 // Sets the value of the alert prompt.
118 Status ExecuteSetAlertValue(
119 Session* session,
120 const base::DictionaryValue& params,
121 scoped_ptr<base::Value>* value);
122
123 // Accepts the open alert.
124 Status ExecuteAcceptAlert(
125 Session* session,
126 const base::DictionaryValue& params,
127 scoped_ptr<base::Value>* value);
128
129 // Dismisses the open alert.
130 Status ExecuteDismissAlert(
131 Session* session,
132 const base::DictionaryValue& params,
133 scoped_ptr<base::Value>* value);
134
135 Status ExecuteIsLoading( 97 Status ExecuteIsLoading(
136 Session* session, 98 Session* session,
137 const base::DictionaryValue& params, 99 const base::DictionaryValue& params,
138 scoped_ptr<base::Value>* value); 100 scoped_ptr<base::Value>* value);
139 101
140 Status ExecuteGetLocation( 102 Status ExecuteGetLocation(
141 Session* session, 103 Session* session,
142 const base::DictionaryValue& params, 104 const base::DictionaryValue& params,
143 scoped_ptr<base::Value>* value); 105 scoped_ptr<base::Value>* value);
144 106
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 Session* session, 138 Session* session,
177 const base::DictionaryValue& params, 139 const base::DictionaryValue& params,
178 scoped_ptr<base::Value>* value); 140 scoped_ptr<base::Value>* value);
179 141
180 Status ExecuteUploadFile( 142 Status ExecuteUploadFile(
181 Session* session, 143 Session* session,
182 const base::DictionaryValue& params, 144 const base::DictionaryValue& params,
183 scoped_ptr<base::Value>* value); 145 scoped_ptr<base::Value>* value);
184 146
185 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ 147 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/command_executor_impl.cc ('k') | chrome/test/chromedriver/session_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698