OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ |
6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ |
7 | 7 |
8 #include "headless/public/headless_browser.h" | 8 #include "headless/public/headless_browser.h" |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 class HeadlessBrowserImpl : public HeadlessBrowser { | 24 class HeadlessBrowserImpl : public HeadlessBrowser { |
25 public: | 25 public: |
26 HeadlessBrowserImpl( | 26 HeadlessBrowserImpl( |
27 const base::Callback<void(HeadlessBrowser*)>& on_start_callback, | 27 const base::Callback<void(HeadlessBrowser*)>& on_start_callback, |
28 const HeadlessBrowser::Options& options); | 28 const HeadlessBrowser::Options& options); |
29 ~HeadlessBrowserImpl() override; | 29 ~HeadlessBrowserImpl() override; |
30 | 30 |
31 // HeadlessBrowser implementation: | 31 // HeadlessBrowser implementation: |
32 std::unique_ptr<HeadlessWebContents> CreateWebContents( | 32 std::unique_ptr<HeadlessWebContents> CreateWebContents( |
| 33 const GURL& initial_url, |
33 const gfx::Size& size) override; | 34 const gfx::Size& size) override; |
34 scoped_refptr<base::SingleThreadTaskRunner> BrowserMainThread() | 35 scoped_refptr<base::SingleThreadTaskRunner> BrowserMainThread() |
35 const override; | 36 const override; |
36 | 37 |
37 void Shutdown() override; | 38 void Shutdown() override; |
38 | 39 |
39 void set_browser_main_parts(HeadlessBrowserMainParts* browser_main_parts); | 40 void set_browser_main_parts(HeadlessBrowserMainParts* browser_main_parts); |
40 HeadlessBrowserMainParts* browser_main_parts() const; | 41 HeadlessBrowserMainParts* browser_main_parts() const; |
41 | 42 |
42 HeadlessBrowserContext* browser_context() const; | 43 HeadlessBrowserContext* browser_context() const; |
(...skipping 12 matching lines...) Expand all Loading... |
55 HeadlessBrowser::Options options_; | 56 HeadlessBrowser::Options options_; |
56 HeadlessBrowserMainParts* browser_main_parts_; // Not owned. | 57 HeadlessBrowserMainParts* browser_main_parts_; // Not owned. |
57 std::unique_ptr<aura::WindowTreeHost> window_tree_host_; | 58 std::unique_ptr<aura::WindowTreeHost> window_tree_host_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserImpl); | 60 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserImpl); |
60 }; | 61 }; |
61 | 62 |
62 } // namespace headless | 63 } // namespace headless |
63 | 64 |
64 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ | 65 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ |
OLD | NEW |