Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2015 The Chromium Authors |
Scott Violet | c668e3f9 | 2017-07-20 17:35:39 | [diff] [blame] | 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 CHROME_BROWSER_EXO_PARTS_H_ |
| 6 | #define CHROME_BROWSER_EXO_PARTS_H_ |
| 7 | |
| 8 | #include <memory> |
| 9 | |
Lloyd Pique | d507c5f | 2020-11-11 22:47:05 | [diff] [blame] | 10 | namespace ash { |
| 11 | class ArcOverlayManager; |
| 12 | } |
| 13 | |
Mitsuru Oshima | 51bf3d547 | 2020-06-17 21:28:34 | [diff] [blame] | 14 | namespace exo { |
| 15 | class WaylandServerController; |
| 16 | } |
| 17 | |
Scott Violet | c668e3f9 | 2017-07-20 17:35:39 | [diff] [blame] | 18 | class ExoParts { |
| 19 | public: |
| 20 | // Creates ExoParts. Returns null if exo should not be created. |
| 21 | static std::unique_ptr<ExoParts> CreateIfNecessary(); |
| 22 | |
Peter Boström | 53c6c595 | 2021-09-17 09:41:26 | [diff] [blame] | 23 | ExoParts(const ExoParts&) = delete; |
| 24 | ExoParts& operator=(const ExoParts&) = delete; |
| 25 | |
Scott Violet | c668e3f9 | 2017-07-20 17:35:39 | [diff] [blame] | 26 | ~ExoParts(); |
| 27 | |
| 28 | private: |
| 29 | ExoParts(); |
| 30 | |
Lloyd Pique | d507c5f | 2020-11-11 22:47:05 | [diff] [blame] | 31 | std::unique_ptr<ash::ArcOverlayManager> arc_overlay_manager_; |
Mitsuru Oshima | 51bf3d547 | 2020-06-17 21:28:34 | [diff] [blame] | 32 | std::unique_ptr<exo::WaylandServerController> wayland_server_; |
Scott Violet | c668e3f9 | 2017-07-20 17:35:39 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | #endif // CHROME_BROWSER_EXO_PARTS_H_ |