Chromium Code Reviews| Index: components/arc/obb_mounter/arc_obb_mounter_bridge.h |
| diff --git a/components/arc/obb_mounter/arc_obb_mounter_bridge.h b/components/arc/obb_mounter/arc_obb_mounter_bridge.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..30107c91a4444751a250c5374ea9ddfaae10309d |
| --- /dev/null |
| +++ b/components/arc/obb_mounter/arc_obb_mounter_bridge.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_ |
| +#define COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_ |
| + |
| +#include "base/macros.h" |
| +#include "components/arc/arc_bridge_service.h" |
| +#include "components/arc/arc_service.h" |
| +#include "mojo/public/cpp/bindings/binding.h" |
| + |
| +namespace arc { |
| + |
| +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.
|
| + public ArcBridgeService::Observer, |
| + public mojom::ObbMounterHost { |
| + public: |
| + explicit ArcObbMounterBridge(ArcBridgeService* bridge_service); |
| + ~ArcObbMounterBridge() override; |
| + |
| + // ArcBridgeService::Observer overrides: |
| + void OnObbMounterInstanceReady() override; |
| + |
| + // mojom::ObbMounterHost overrides: |
| + void MountObb(const mojo::String& obb_file, |
| + const mojo::String& target_path, |
| + int32_t owner_gid, |
| + const MountObbCallback& callback) override; |
| + void UnmountObb(const mojo::String& target_path, |
| + const UnmountObbCallback& callback) override; |
| + |
| + private: |
| + mojo::Binding<mojom::ObbMounterHost> binding_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ArcObbMounterBridge); |
| +}; |
| + |
| +} // namespace arc |
| + |
| +#endif // COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_ |