| 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 ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ | 5 #ifndef ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ |
| 6 #define ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ | 6 #define ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 | 12 |
| 13 #include "ash/public/interfaces/wallpaper.mojom.h" | 13 #include "ash/public/interfaces/wallpaper.mojom.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "mojo/public/cpp/bindings/binding.h" | 16 #include "mojo/public/cpp/bindings/binding.h" |
| 17 #include "services/service_manager/public/cpp/service.h" | 17 #include "services/service_manager/public/cpp/service.h" |
| 18 #include "services/tracing/public/cpp/provider.h" | 18 #include "services/tracing/public/cpp/provider.h" |
| 19 #include "services/ui/common/types.h" | 19 #include "services/ui/common/types.h" |
| 20 | 20 |
| 21 namespace aura { | 21 namespace aura { |
| 22 class WindowTreeClient; | 22 class WindowTreeClient; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class SequencedWorkerPool; | 26 class SequencedWorkerPool; |
| 27 class Thread; |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace chromeos { | 30 namespace chromeos { |
| 30 namespace system { | 31 namespace system { |
| 31 class ScopedFakeStatisticsProvider; | 32 class ScopedFakeStatisticsProvider; |
| 32 } | 33 } |
| 33 } | 34 } |
| 34 | 35 |
| 36 namespace discardable_memory { |
| 37 class ClientDiscardableSharedMemoryManager; |
| 38 } |
| 39 |
| 35 namespace views { | 40 namespace views { |
| 36 class AuraInit; | 41 class AuraInit; |
| 37 } | 42 } |
| 38 | 43 |
| 39 namespace ash { | 44 namespace ash { |
| 40 namespace test { | 45 namespace test { |
| 41 class AshTestHelper; | 46 class AshTestHelper; |
| 42 } | 47 } |
| 43 namespace mus { | 48 namespace mus { |
| 44 | 49 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 66 void InitializeComponents(); | 71 void InitializeComponents(); |
| 67 void ShutdownComponents(); | 72 void ShutdownComponents(); |
| 68 | 73 |
| 69 // service_manager::Service: | 74 // service_manager::Service: |
| 70 void OnStart() override; | 75 void OnStart() override; |
| 71 bool OnConnect(const service_manager::ServiceInfo& remote_info, | 76 bool OnConnect(const service_manager::ServiceInfo& remote_info, |
| 72 service_manager::InterfaceRegistry* registry) override; | 77 service_manager::InterfaceRegistry* registry) override; |
| 73 | 78 |
| 74 tracing::Provider tracing_; | 79 tracing::Provider tracing_; |
| 75 | 80 |
| 81 std::unique_ptr<base::Thread> io_thread_; |
| 82 |
| 76 std::unique_ptr<views::AuraInit> aura_init_; | 83 std::unique_ptr<views::AuraInit> aura_init_; |
| 77 | 84 |
| 78 std::unique_ptr<WindowManager> window_manager_; | 85 std::unique_ptr<WindowManager> window_manager_; |
| 79 | 86 |
| 80 // A blocking pool used by the WindowManager's shell; not used in tests. | 87 // A blocking pool used by the WindowManager's shell; not used in tests. |
| 81 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 88 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 82 | 89 |
| 83 std::unique_ptr<NetworkConnectDelegateMus> network_connect_delegate_; | 90 std::unique_ptr<NetworkConnectDelegateMus> network_connect_delegate_; |
| 84 std::unique_ptr<chromeos::system::ScopedFakeStatisticsProvider> | 91 std::unique_ptr<chromeos::system::ScopedFakeStatisticsProvider> |
| 85 statistics_provider_; | 92 statistics_provider_; |
| 93 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> |
| 94 discardable_shared_memory_manager_; |
| 86 | 95 |
| 87 DISALLOW_COPY_AND_ASSIGN(WindowManagerApplication); | 96 DISALLOW_COPY_AND_ASSIGN(WindowManagerApplication); |
| 88 }; | 97 }; |
| 89 | 98 |
| 90 } // namespace mus | 99 } // namespace mus |
| 91 } // namespace ash | 100 } // namespace ash |
| 92 | 101 |
| 93 #endif // ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ | 102 #endif // ASH_MUS_WINDOW_MANAGER_APPLICATION_H_ |
| OLD | NEW |