| 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 #include "components/arc/obb_mounter/arc_obb_mounter_bridge.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "components/arc/arc_bridge_service.h" |
| 9 |
| 10 namespace arc { |
| 11 |
| 12 ArcObbMounterBridge::ArcObbMounterBridge(ArcBridgeService* bridge_service) |
| 13 : ArcService(bridge_service), |
| 14 binding_(this) { |
| 15 arc_bridge_service()->AddObserver(this); |
| 16 } |
| 17 |
| 18 ArcObbMounterBridge::~ArcObbMounterBridge() { |
| 19 arc_bridge_service()->RemoveObserver(this); |
| 20 } |
| 21 |
| 22 void ArcObbMounterBridge::OnObbMounterInstanceReady() { |
| 23 mojom::ObbMounterInstance* obb_mounter_instance = |
| 24 arc_bridge_service()->obb_mounter_instance(); |
| 25 obb_mounter_instance->Init(binding_.CreateInterfacePtrAndBind()); |
| 26 } |
| 27 |
| 28 void ArcObbMounterBridge::MountObb(const mojo::String& obb_file, |
| 29 const mojo::String& target_path, |
| 30 int32_t owner_gid, |
| 31 const MountObbCallback& callback) { |
| 32 // TODO(hashimoto): Implement this. crbug.com/613480 |
| 33 NOTIMPLEMENTED(); |
| 34 callback.Run(false); |
| 35 } |
| 36 |
| 37 void ArcObbMounterBridge::UnmountObb(const mojo::String& target_path, |
| 38 const UnmountObbCallback& callback) { |
| 39 // TODO(hashimoto): Implement this. crbug.com/613480 |
| 40 NOTIMPLEMENTED(); |
| 41 callback.Run(false); |
| 42 } |
| 43 |
| 44 } // namespace arc |
| OLD | NEW |