| 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 COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ | 5 #ifndef COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ |
| 6 #define COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ | 6 #define COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/task_runner.h" | 13 #include "base/task_runner.h" |
| 14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
| 15 #include "components/arc/intent_helper/activity_icon_loader.h" | 15 #include "components/arc/intent_helper/activity_icon_loader.h" |
| 16 #include "components/arc/intent_helper/local_activity_resolver.h" |
| 16 #include "components/prefs/pref_member.h" | 17 #include "components/prefs/pref_member.h" |
| 17 #include "components/signin/core/account_id/account_id.h" | 18 #include "components/signin/core/account_id/account_id.h" |
| 18 | 19 |
| 19 namespace arc { | 20 namespace arc { |
| 20 | 21 |
| 21 class ArcBridgeService; | 22 class ArcBridgeService; |
| 22 class ArcService; | 23 class ArcService; |
| 23 | 24 |
| 24 // Manages creation and destruction of services that communicate with the ARC | 25 // Manages creation and destruction of services that communicate with the ARC |
| 25 // instance via the ArcBridgeService. | 26 // instance via the ArcBridgeService. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Returns the icon loader owned by ArcServiceManager and shared by services. | 64 // Returns the icon loader owned by ArcServiceManager and shared by services. |
| 64 scoped_refptr<ActivityIconLoader> icon_loader() { return icon_loader_; } | 65 scoped_refptr<ActivityIconLoader> icon_loader() { return icon_loader_; } |
| 65 | 66 |
| 66 private: | 67 private: |
| 67 base::ThreadChecker thread_checker_; | 68 base::ThreadChecker thread_checker_; |
| 68 scoped_refptr<base::TaskRunner> blocking_task_runner_; | 69 scoped_refptr<base::TaskRunner> blocking_task_runner_; |
| 69 | 70 |
| 70 std::unique_ptr<ArcBridgeService> arc_bridge_service_; | 71 std::unique_ptr<ArcBridgeService> arc_bridge_service_; |
| 71 std::vector<std::unique_ptr<ArcService>> services_; | 72 std::vector<std::unique_ptr<ArcService>> services_; |
| 72 scoped_refptr<ActivityIconLoader> icon_loader_; | 73 scoped_refptr<ActivityIconLoader> icon_loader_; |
| 74 scoped_refptr<LocalActivityResolver> activity_resolver_; |
| 73 | 75 |
| 74 // True once the window manager service got added, barring adding any more | 76 // True once the window manager service got added, barring adding any more |
| 75 // of those since OnAshStarted() might be called multiple times. | 77 // of those since OnAshStarted() might be called multiple times. |
| 76 bool on_ash_started_called_ = false; | 78 bool on_ash_started_called_ = false; |
| 77 | 79 |
| 78 DISALLOW_COPY_AND_ASSIGN(ArcServiceManager); | 80 DISALLOW_COPY_AND_ASSIGN(ArcServiceManager); |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 } // namespace arc | 83 } // namespace arc |
| 82 | 84 |
| 83 #endif // COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ | 85 #endif // COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ |
| OLD | NEW |