| Index: headless/lib/web_frame_impl.h
|
| diff --git a/headless/lib/web_frame_impl.h b/headless/lib/web_frame_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..835be29581617396fd6b5a61e50ba24d4a197dc8
|
| --- /dev/null
|
| +++ b/headless/lib/web_frame_impl.h
|
| @@ -0,0 +1,52 @@
|
| +// 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_LIB_WEB_FRAME_IMPL_H_
|
| +#define HEADLESS_LIB_WEB_FRAME_IMPL_H_
|
| +
|
| +#include "headless/public/web_frame.h"
|
| +
|
| +namespace base {
|
| +class Value;
|
| +}
|
| +
|
| +namespace blink {
|
| +class WebLocalFrame;
|
| +}
|
| +
|
| +namespace v8 {
|
| +template <class T> class Local;
|
| +class Value;
|
| +}
|
| +
|
| +namespace headless {
|
| +class WebDocument;
|
| +
|
| +class WebFrameImpl : public WebFrame {
|
| + public:
|
| + ~WebFrameImpl() override;
|
| +
|
| + // WebFrame implementation
|
| + WebDocument document() override;
|
| + void ExecuteScript(const std::string& source_code) override;
|
| + void ExecuteScriptAndReturnValue(
|
| + const std::string& source_code,
|
| + const ScriptExecutionCallback& callback) override;
|
| +
|
| + private:
|
| + WebFrameImpl(blink::WebLocalFrame* web_frame);
|
| +
|
| + friend class WebContentsImpl;
|
| +
|
| + class JavaScriptExecutionCallback;
|
| +
|
| + scoped_ptr<base::Value> ConvertV8ValueToBase(
|
| + const v8::Local<v8::Value>& value);
|
| +
|
| + blink::WebLocalFrame* web_frame_;
|
| +};
|
| +
|
| +} // namespace headless
|
| +
|
| +#endif // HEADLESS_LIB_WEB_FRAME_IMPL_H_
|
|
|