Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: headless/lib/browser/headless_browser_impl.h

Issue 2787373002: [headless] Use individual aura::WindowTreeHosts per WebContents. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: headless/lib/browser/headless_browser_impl.h
diff --git a/headless/lib/browser/headless_browser_impl.h b/headless/lib/browser/headless_browser_impl.h
index d54ecfd77eacd65e9f32707b0568fee1fa44d4cf..8f67953f92c9d9f8b386b5a8e5cf5d7a6264823d 100644
--- a/headless/lib/browser/headless_browser_impl.h
+++ b/headless/lib/browser/headless_browser_impl.h
@@ -18,16 +18,6 @@
#include "headless/lib/browser/headless_web_contents_impl.h"
#include "headless/public/headless_export.h"
-#if defined(USE_AURA)
-#include "headless/lib/browser/headless_window_tree_host.h"
-
-namespace aura {
-namespace client {
-class FocusClient;
-}
-}
-#endif
-
namespace headless {
class HeadlessBrowserContextImpl;
@@ -81,17 +71,9 @@ class HEADLESS_EXPORT HeadlessBrowserImpl : public HeadlessBrowser {
void PlatformInitialize();
void PlatformCreateWindow();
void PlatformInitializeWebContents(const gfx::Size& initial_size,
- content::WebContents* web_contents);
+ HeadlessWebContentsImpl* web_contents);
protected:
-#if defined(USE_AURA)
- // TODO(eseckler): Currently one window and one window_tree_host
- // is used for all web contents. We should probably use one
- // window per web contents, but additional investigation is needed.
- std::unique_ptr<HeadlessWindowTreeHost> window_tree_host_;
- std::unique_ptr<aura::client::FocusClient> focus_client_;
-#endif
-
base::Callback<void(HeadlessBrowser*)> on_start_callback_;
HeadlessBrowser::Options options_;
HeadlessBrowserMainParts* browser_main_parts_; // Not owned.

Powered by Google App Engine
This is Rietveld 408576698