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_WEB_CONTENTS_IMPL_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ |
6 #define HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <unordered_map> | 11 #include <unordered_map> |
12 | 12 |
13 #include "content/public/browser/render_process_host_observer.h" | 13 #include "content/public/browser/render_process_host_observer.h" |
14 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
15 #include "headless/public/headless_devtools_target.h" | 15 #include "headless/public/headless_devtools_target.h" |
16 #include "headless/public/headless_web_contents.h" | 16 #include "headless/public/headless_web_contents.h" |
17 | 17 |
18 namespace aura { | 18 namespace aura { |
19 class Window; | 19 class Window; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 class BrowserContext; | |
24 class DevToolsAgentHost; | 23 class DevToolsAgentHost; |
25 class WebContents; | 24 class WebContents; |
26 } | 25 } |
27 | 26 |
28 namespace gfx { | 27 namespace gfx { |
29 class Size; | 28 class Size; |
30 } | 29 } |
31 | 30 |
32 namespace headless { | 31 namespace headless { |
33 class HeadlessDevToolsHostImpl; | |
34 class HeadlessBrowserImpl; | 32 class HeadlessBrowserImpl; |
35 class WebContentsObserverAdapter; | 33 class WebContentsObserverAdapter; |
36 | 34 |
37 class HeadlessWebContentsImpl : public HeadlessWebContents, | 35 class HeadlessWebContentsImpl : public HeadlessWebContents, |
38 public HeadlessDevToolsTarget, | 36 public HeadlessDevToolsTarget, |
39 public content::RenderProcessHostObserver, | 37 public content::RenderProcessHostObserver, |
40 public content::WebContentsObserver { | 38 public content::WebContentsObserver { |
41 public: | 39 public: |
42 ~HeadlessWebContentsImpl() override; | 40 ~HeadlessWebContentsImpl() override; |
43 | 41 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 std::unordered_map<HeadlessWebContents::Observer*, | 103 std::unordered_map<HeadlessWebContents::Observer*, |
106 std::unique_ptr<WebContentsObserverAdapter>>; | 104 std::unique_ptr<WebContentsObserverAdapter>>; |
107 ObserverMap observer_map_; | 105 ObserverMap observer_map_; |
108 | 106 |
109 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContentsImpl); | 107 DISALLOW_COPY_AND_ASSIGN(HeadlessWebContentsImpl); |
110 }; | 108 }; |
111 | 109 |
112 } // namespace headless | 110 } // namespace headless |
113 | 111 |
114 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ | 112 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |