| 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 CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ | 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ |
| 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ | 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/chrome_browser_main_extra_parts.h" | 11 #include "chrome/browser/chrome_browser_main_extra_parts.h" |
| 12 | 12 |
| 13 namespace exo { | 13 namespace exo { |
| 14 class Display; | 14 class Display; |
| 15 namespace wayland { | 15 namespace wayland { |
| 16 class Server; | 16 class Server; |
| 17 } | 17 } |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace arc { |
| 21 class ArcNotificationSurfaceManager; |
| 22 } |
| 23 |
| 20 class ChromeBrowserMainExtraPartsExo : public ChromeBrowserMainExtraParts { | 24 class ChromeBrowserMainExtraPartsExo : public ChromeBrowserMainExtraParts { |
| 21 public: | 25 public: |
| 22 ChromeBrowserMainExtraPartsExo(); | 26 ChromeBrowserMainExtraPartsExo(); |
| 23 ~ChromeBrowserMainExtraPartsExo() override; | 27 ~ChromeBrowserMainExtraPartsExo() override; |
| 24 | 28 |
| 25 // Overridden from ChromeBrowserMainExtraParts: | 29 // Overridden from ChromeBrowserMainExtraParts: |
| 26 void PreProfileInit() override; | 30 void PreProfileInit() override; |
| 27 void PostMainMessageLoopRun() override; | 31 void PostMainMessageLoopRun() override; |
| 28 | 32 |
| 29 private: | 33 private: |
| 34 std::unique_ptr<arc::ArcNotificationSurfaceManager> |
| 35 arc_notification_surface_manager_; |
| 30 std::unique_ptr<exo::Display> display_; | 36 std::unique_ptr<exo::Display> display_; |
| 31 std::unique_ptr<exo::wayland::Server> wayland_server_; | 37 std::unique_ptr<exo::wayland::Server> wayland_server_; |
| 32 class WaylandWatcher; | 38 class WaylandWatcher; |
| 33 std::unique_ptr<WaylandWatcher> wayland_watcher_; | 39 std::unique_ptr<WaylandWatcher> wayland_watcher_; |
| 34 | 40 |
| 35 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsExo); | 41 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsExo); |
| 36 }; | 42 }; |
| 37 | 43 |
| 38 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ | 44 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ |
| OLD | NEW |