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

Side by Side Diff: headless/lib/browser/headless_browser_impl.h

Issue 2438853002: Renames aura::client::WindowTreeClient to WindowParentingClient (Closed)
Patch Set: cleanup Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_browser_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
11 #include <string> 11 #include <string>
12 #include <unordered_map> 12 #include <unordered_map>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "headless/lib/browser/headless_devtools_manager_delegate.h" 16 #include "headless/lib/browser/headless_devtools_manager_delegate.h"
17 #include "headless/lib/browser/headless_web_contents_impl.h" 17 #include "headless/lib/browser/headless_web_contents_impl.h"
18 18
19 namespace aura { 19 namespace aura {
20 class WindowTreeHost; 20 class WindowTreeHost;
21 21
22 namespace client { 22 namespace client {
23 class WindowTreeClient; 23 class WindowParentingClient;
24 } 24 }
25 } 25 }
26 26
27 namespace headless { 27 namespace headless {
28 28
29 class HeadlessBrowserContextImpl; 29 class HeadlessBrowserContextImpl;
30 class HeadlessBrowserMainParts; 30 class HeadlessBrowserMainParts;
31 31
32 class HeadlessBrowserImpl : public HeadlessBrowser { 32 class HeadlessBrowserImpl : public HeadlessBrowser {
33 public: 33 public:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 protected: 72 protected:
73 base::Callback<void(HeadlessBrowser*)> on_start_callback_; 73 base::Callback<void(HeadlessBrowser*)> on_start_callback_;
74 HeadlessBrowser::Options options_; 74 HeadlessBrowser::Options options_;
75 HeadlessBrowserMainParts* browser_main_parts_; // Not owned. 75 HeadlessBrowserMainParts* browser_main_parts_; // Not owned.
76 76
77 // TODO(eseckler): Currently one window and one window_tree_host 77 // TODO(eseckler): Currently one window and one window_tree_host
78 // is used for all web contents. We should probably use one 78 // is used for all web contents. We should probably use one
79 // window per web contents, but additional investigation is needed. 79 // window per web contents, but additional investigation is needed.
80 std::unique_ptr<aura::WindowTreeHost> window_tree_host_; 80 std::unique_ptr<aura::WindowTreeHost> window_tree_host_;
81 std::unique_ptr<aura::client::WindowTreeClient> window_tree_client_; 81 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_;
82 82
83 std::unordered_map<std::string, std::unique_ptr<HeadlessBrowserContextImpl>> 83 std::unordered_map<std::string, std::unique_ptr<HeadlessBrowserContextImpl>>
84 browser_contexts_; 84 browser_contexts_;
85 85
86 base::WeakPtrFactory<HeadlessBrowserImpl> weak_ptr_factory_; 86 base::WeakPtrFactory<HeadlessBrowserImpl> weak_ptr_factory_;
87 87
88 private: 88 private:
89 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserImpl); 89 DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserImpl);
90 }; 90 };
91 91
92 } // namespace headless 92 } // namespace headless
93 93
94 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_ 94 #endif // HEADLESS_LIB_BROWSER_HEADLESS_BROWSER_IMPL_H_
OLDNEW
« no previous file with comments | « headless/BUILD.gn ('k') | headless/lib/browser/headless_browser_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698