| OLD | NEW |
| 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_CHROMEDRIVER_CHROME_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class ListValue; | 13 class ListValue; |
| 14 class Value; | 14 class Value; |
| 15 } | 15 } |
| 16 | 16 |
| 17 class Status; | 17 class Status; |
| 18 | 18 |
| 19 class Chrome { | 19 class Chrome { |
| 20 public: | 20 public: |
| 21 virtual ~Chrome() {} | 21 virtual ~Chrome() {} |
| 22 | 22 |
| 23 virtual Status Load(const std::string& url) = 0; | 23 virtual Status Load(const std::string& url) = 0; |
| 24 virtual Status EvaluateScript(const std::string& expression, | 24 virtual Status EvaluateScript(const std::string& frame, |
| 25 const std::string& expression, |
| 25 scoped_ptr<base::Value>* result) = 0; | 26 scoped_ptr<base::Value>* result) = 0; |
| 26 virtual Status CallFunction(const std::string& function, | 27 virtual Status CallFunction(const std::string& frame, |
| 28 const std::string& function, |
| 27 const base::ListValue& args, | 29 const base::ListValue& args, |
| 28 scoped_ptr<base::Value>* result) = 0; | 30 scoped_ptr<base::Value>* result) = 0; |
| 31 virtual Status GetFrameByFunction(const std::string& frame, |
| 32 const std::string& function, |
| 33 const base::ListValue& args, |
| 34 std::string* out_frame) = 0; |
| 29 virtual Status Quit() = 0; | 35 virtual Status Quit() = 0; |
| 30 }; | 36 }; |
| 31 | 37 |
| 32 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_H_ | 38 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_H_ |
| OLD | NEW |