| Index: headless/lib/web_contents_impl.h
 | 
| diff --git a/headless/lib/web_contents_impl.h b/headless/lib/web_contents_impl.h
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..0bd82b7881eea6ae306c6714c3501b688b698e53
 | 
| --- /dev/null
 | 
| +++ b/headless/lib/web_contents_impl.h
 | 
| @@ -0,0 +1,55 @@
 | 
| +// 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_CONTENTS_IMPL_H_
 | 
| +#define HEADLESS_LIB_WEB_CONTENTS_IMPL_H_
 | 
| +
 | 
| +#include "headless/public/web_contents.h"
 | 
| +
 | 
| +class SkBitmap;
 | 
| +
 | 
| +namespace aura {
 | 
| +class WindowTreeHost;
 | 
| +}
 | 
| +
 | 
| +namespace content {
 | 
| +class WebContents;
 | 
| +class BrowserContext;
 | 
| +}
 | 
| +
 | 
| +namespace gfx {
 | 
| +class Size;
 | 
| +}
 | 
| +
 | 
| +namespace headless {
 | 
| +
 | 
| +class WebContentsImpl : public WebContents {
 | 
| + public:
 | 
| +  ~WebContentsImpl() override;
 | 
| +
 | 
| +  // WebContents implementation
 | 
| +  scoped_ptr<WebFrame> main_frame() override;
 | 
| +  void OpenURL(const GURL& url) override;
 | 
| +  void GetScreenshot(const ScreenshotCallback& callback) override;
 | 
| +
 | 
| + protected:
 | 
| +  content::WebContents* web_contents() override;
 | 
| +
 | 
| + private:
 | 
| +  friend class HeadlessBrowserImpl;
 | 
| +
 | 
| +  WebContentsImpl(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_;
 | 
| +};
 | 
| +
 | 
| +}  // namespace headless
 | 
| +
 | 
| +#endif  // HEADLESS_LIB_WEB_CONTENTS_IMPL_H_
 | 
| 
 |