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