Chromium Code Reviews| Index: components/arc/arc_service_manager.h |
| diff --git a/components/arc/arc_service_manager.h b/components/arc/arc_service_manager.h |
| index cf372871a87c6be94e8f2bf1c65213954cfd38ba..6d185f96d5212f6043abae8832da72f596b36f14 100644 |
| --- a/components/arc/arc_service_manager.h |
| +++ b/components/arc/arc_service_manager.h |
| @@ -19,6 +19,7 @@ |
| namespace arc { |
| class ArcBridgeService; |
| +class ArcFileSystemService; |
| class ArcIntentHelperObserver; |
| class ArcService; |
| @@ -74,11 +75,19 @@ class ArcServiceManager { |
| return activity_resolver_; |
| } |
| - // Returns the IntentHelperObserver instance owned by ArcServiceManager. |
| + // Returns the ArcIntentHelperObserver instance owned by ArcServiceManager. |
| ArcIntentHelperObserver* intent_helper_observer() { |
| return intent_helper_observer_.get(); |
| } |
| + // TODO(crbug.com/672840): Implement a generic getter to avoid boilerplates. |
| + void set_file_system_service(ArcFileSystemService* file_system_service) { |
|
Luis Héctor Chávez
2017/01/11 17:10:45
FYI the support for the generic getter has landed,
Shuhei Takahashi
2017/01/12 08:52:13
Thanks, I've updated the patch to use the brand ne
|
| + file_system_service_ = file_system_service; |
| + } |
| + ArcFileSystemService* file_system_service() const { |
| + return file_system_service_; |
| + } |
| + |
| private: |
| class IntentHelperObserverImpl; // implemented in arc_service_manager.cc. |
| @@ -93,6 +102,9 @@ class ArcServiceManager { |
| scoped_refptr<ActivityIconLoader> icon_loader_; |
| scoped_refptr<LocalActivityResolver> activity_resolver_; |
| + // Owned by |services_|. |
| + ArcFileSystemService* file_system_service_ = nullptr; |
| + |
| base::ObserverList<Observer> observer_list_; |
| DISALLOW_COPY_AND_ASSIGN(ArcServiceManager); |