| OLD | NEW |
| (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_CHROMEDRIVER_COMMAND_EXECUTOR_H_ | |
| 6 #define CHROME_TEST_CHROMEDRIVER_COMMAND_EXECUTOR_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/threading/non_thread_safe.h" | |
| 13 #include "chrome/test/chromedriver/chrome/status.h" | |
| 14 | |
| 15 namespace base { | |
| 16 class DictionaryValue; | |
| 17 class Value; | |
| 18 } | |
| 19 | |
| 20 // Executes WebDriver commands. | |
| 21 class CommandExecutor { | |
| 22 public: | |
| 23 virtual ~CommandExecutor() {} | |
| 24 | |
| 25 virtual void Init() = 0; | |
| 26 | |
| 27 // Executes a command synchronously. This function must be thread safe. | |
| 28 virtual void ExecuteCommand(const std::string& name, | |
| 29 const base::DictionaryValue& params, | |
| 30 const std::string& session_id, | |
| 31 StatusCode* status_code, | |
| 32 scoped_ptr<base::Value>* value, | |
| 33 std::string* out_session_id) = 0; | |
| 34 }; | |
| 35 | |
| 36 #endif // CHROME_TEST_CHROMEDRIVER_COMMAND_EXECUTOR_H_ | |
| OLD | NEW |