Chromium Code Reviews| Index: headless/public/web_frame.h |
| diff --git a/headless/public/web_frame.h b/headless/public/web_frame.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2d1b6bbfe5de1a908158004dc4c5d7e10a0fcc17 |
| --- /dev/null |
| +++ b/headless/public/web_frame.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef HEADLESS_PUBLIC_WEB_FRAME_H_ |
| +#define HEADLESS_PUBLIC_WEB_FRAME_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/callback.h" |
| +#include "headless/public/headless_export.h" |
| + |
| +namespace headless { |
| + |
| +class WebDocument; |
| + |
| +class HEADLESS_EXPORT WebFrame { |
| + public: |
| + virtual ~WebFrame(); |
|
alex clarke (OOO till 29th)
2015/11/19 18:17:54
Can we not implement this destructor inline?
altimin
2015/11/19 18:36:24
Done.
|
| + |
| + virtual WebDocument document() = 0; |
| + |
| + // TODO(altimin): return a script execution result. |
| + virtual void ExecuteScript(const std::string& source_code) = 0; |
| +}; |
| + |
| +} // namespace headless |
| + |
| +#endif // HEADLESS_PUBLIC_WEB_FRAME_H_ |