| 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();
|
| +
|
| + 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_
|
|
|