OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ |
| 6 #define HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ |
| 7 |
| 8 #include "headless/public/headless_web_contents.h" |
| 9 |
| 10 namespace aura { |
| 11 class Window; |
| 12 } |
| 13 |
| 14 namespace content { |
| 15 class WebContents; |
| 16 class BrowserContext; |
| 17 } |
| 18 |
| 19 namespace gfx { |
| 20 class Size; |
| 21 } |
| 22 |
| 23 namespace headless { |
| 24 |
| 25 class HeadlessWebContentsImpl : public HeadlessWebContents { |
| 26 public: |
| 27 ~HeadlessWebContentsImpl() override; |
| 28 |
| 29 // HeadlessWebContents implementation: |
| 30 void OpenURL(const GURL& url) override; |
| 31 |
| 32 content::WebContents* web_contents() const; |
| 33 |
| 34 private: |
| 35 friend class HeadlessBrowserImpl; |
| 36 |
| 37 HeadlessWebContentsImpl(content::BrowserContext* context, |
| 38 aura::Window* parent_window, |
| 39 const gfx::Size& initial_size); |
| 40 |
| 41 class Delegate; |
| 42 scoped_ptr<Delegate> web_contents_delegate_; |
| 43 scoped_ptr<content::WebContents> web_contents_; |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContentsImpl); |
| 46 }; |
| 47 |
| 48 } // namespace headless |
| 49 |
| 50 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |