Chromium Code Reviews| Index: headless/lib/headless_web_contents_impl.h |
| diff --git a/headless/lib/headless_web_contents_impl.h b/headless/lib/headless_web_contents_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c601fa0d243dd134ebf149cb697c5089572335c4 |
| --- /dev/null |
| +++ b/headless/lib/headless_web_contents_impl.h |
| @@ -0,0 +1,53 @@ |
| +// 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_HEADLESS_WEB_CONTENTS_IMPL_H_ |
| +#define HEADLESS_LIB_HEADLESS_WEB_CONTENTS_IMPL_H_ |
| + |
| +#include "headless/public/headless_web_contents.h" |
| + |
| +class SkBitmap; |
| + |
| +namespace aura { |
| +class WindowTreeHost; |
| +} |
| + |
| +namespace content { |
| +class WebContents; |
| +class BrowserContext; |
| +} |
| + |
| +namespace gfx { |
| +class Size; |
| +} |
| + |
| +namespace headless { |
| +class HeadlessServiceContext; |
| + |
| +class HeadlessWebContentsImpl : public HeadlessWebContents { |
| + public: |
| + ~HeadlessWebContentsImpl() override; |
| + |
| + // HeadlessWebContents implementation: |
| + void OpenURL(const GURL& url) override; |
| + |
| + content::WebContents* web_contents(); |
|
alex clarke (OOO till 29th)
2016/02/10 17:49:22
const?
Sami
2016/02/10 18:47:38
Done.
|
| + |
| + private: |
| + friend class HeadlessBrowserImpl; |
| + |
| + HeadlessWebContentsImpl(content::BrowserContext* context, |
| + const gfx::Size& initial_size); |
| + |
| + class Delegate; |
| + scoped_ptr<Delegate> web_contents_delegate_; |
| + scoped_ptr<content::WebContents> web_contents_; |
| + scoped_ptr<aura::WindowTreeHost> window_tree_host_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(HeadlessWebContentsImpl); |
| +}; |
| + |
| +} // namespace headless |
| + |
| +#endif // HEADLESS_LIB_HEADLESS_WEB_CONTENTS_IMPL_H_ |