| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 COMPONENTS_ARC_KIOSK_ARC_KIOSK_BRIDGE_H_ | |
| 6 #define COMPONENTS_ARC_KIOSK_ARC_KIOSK_BRIDGE_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "components/arc/arc_service.h" | |
| 12 #include "components/arc/common/kiosk.mojom.h" | |
| 13 #include "components/arc/instance_holder.h" | |
| 14 #include "mojo/public/cpp/bindings/binding.h" | |
| 15 | |
| 16 namespace arc { | |
| 17 | |
| 18 class ArcBridgeService; | |
| 19 | |
| 20 class ArcKioskBridge : public ArcService, | |
| 21 public InstanceHolder<mojom::KioskInstance>::Observer, | |
| 22 public mojom::KioskHost { | |
| 23 public: | |
| 24 explicit ArcKioskBridge(ArcBridgeService* bridge_service); | |
| 25 ~ArcKioskBridge() override; | |
| 26 | |
| 27 // InstanceHolder<mojom::KioskInstance>::Observer overrides. | |
| 28 void OnInstanceReady() override; | |
| 29 | |
| 30 // mojom::KioskHost overrides. | |
| 31 void OnMaintenanceSessionCreated(int32_t session_id) override; | |
| 32 void OnMaintenanceSessionFinished(int32_t session_id, bool success) override; | |
| 33 | |
| 34 private: | |
| 35 mojo::Binding<mojom::KioskHost> binding_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(ArcKioskBridge); | |
| 38 }; | |
| 39 | |
| 40 } // namespace arc | |
| 41 | |
| 42 #endif // COMPONENTS_ARC_KIOSK_ARC_KIOSK_BRIDGE_H_ | |
| OLD | NEW |