Chromium Code Reviews| 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_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_ | |
| 6 #define COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "components/arc/arc_bridge_service.h" | |
| 10 #include "components/arc/arc_service.h" | |
| 11 #include "mojo/public/cpp/bindings/binding.h" | |
| 12 | |
| 13 namespace arc { | |
| 14 | |
| 15 class ArcObbMounterBridge : public ArcService, | |
|
hidehiko
2016/05/23 09:14:47
Could you add quick summary of what this class doe
hashimoto
2016/05/24 06:32:13
Done.
| |
| 16 public ArcBridgeService::Observer, | |
| 17 public mojom::ObbMounterHost { | |
| 18 public: | |
| 19 explicit ArcObbMounterBridge(ArcBridgeService* bridge_service); | |
| 20 ~ArcObbMounterBridge() override; | |
| 21 | |
| 22 // ArcBridgeService::Observer overrides: | |
| 23 void OnObbMounterInstanceReady() override; | |
| 24 | |
| 25 // mojom::ObbMounterHost overrides: | |
| 26 void MountObb(const mojo::String& obb_file, | |
| 27 const mojo::String& target_path, | |
| 28 int32_t owner_gid, | |
| 29 const MountObbCallback& callback) override; | |
| 30 void UnmountObb(const mojo::String& target_path, | |
| 31 const UnmountObbCallback& callback) override; | |
| 32 | |
| 33 private: | |
| 34 mojo::Binding<mojom::ObbMounterHost> binding_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(ArcObbMounterBridge); | |
| 37 }; | |
| 38 | |
| 39 } // namespace arc | |
| 40 | |
| 41 #endif // COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_ | |
| OLD | NEW |