| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
| 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_CHROMEOS_ARC_ARC_SETTINGS_SERVICE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SETTINGS_SERVICE_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "components/arc/arc_service.h" | |
| 12 #include "components/arc/common/intent_helper.mojom.h" | |
| 13 #include "components/arc/instance_holder.h" | |
| 14 | |
| 15 namespace arc { | |
| 16 | |
| 17 class ArcBridgeService; | |
| 18 class ArcSettingsServiceImpl; | |
| 19 | |
| 20 class ArcSettingsService | |
| 21 : public ArcService, | |
| 22 public InstanceHolder<mojom::IntentHelperInstance>::Observer { | |
| 23 public: | |
| 24 explicit ArcSettingsService(ArcBridgeService* bridge_service); | |
| 25 ~ArcSettingsService() override; | |
| 26 | |
| 27 // InstanceHolder<mojom::IntentHelperInstance>::Observer | |
| 28 void OnInstanceReady() override; | |
| 29 void OnInstanceClosed() override; | |
| 30 | |
| 31 private: | |
| 32 std::unique_ptr<ArcSettingsServiceImpl> impl_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(ArcSettingsService); | |
| 35 }; | |
| 36 | |
| 37 } // namespace arc | |
| 38 | |
| 39 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SETTINGS_SERVICE_H_ | |
| OLD | NEW |