OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 HEADLESS_PUBLIC_WEB_FRAME_H_ |
| 6 #define HEADLESS_PUBLIC_WEB_FRAME_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/callback.h" |
| 11 #include "headless/public/headless_export.h" |
| 12 |
| 13 namespace headless { |
| 14 |
| 15 class WebDocument; |
| 16 |
| 17 class HEADLESS_EXPORT WebFrame { |
| 18 public: |
| 19 virtual ~WebFrame(); |
| 20 |
| 21 virtual WebDocument document() = 0; |
| 22 |
| 23 // TODO(altimin): return a script execution result. |
| 24 virtual void ExecuteScript(const std::string& source_code) = 0; |
| 25 }; |
| 26 |
| 27 } // namespace headless |
| 28 |
| 29 #endif // HEADLESS_PUBLIC_WEB_FRAME_H_ |
OLD | NEW |