Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: components/arc/obb_mounter/arc_obb_mounter_bridge.h

Issue 1995243002: Add OBB mounter Mojo interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/arc/common/obb_mounter.mojom ('k') | components/arc/obb_mounter/arc_obb_mounter_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d23715212c605c4493e6b83261c42d3d70c92a4d
--- /dev/null
+++ b/components/arc/obb_mounter/arc_obb_mounter_bridge.h
@@ -0,0 +1,42 @@
+// 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 {
+
+// This class handles OBB mount/unmount requests from Android.
+class ArcObbMounterBridge : public ArcService,
+ 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_
« no previous file with comments | « components/arc/common/obb_mounter.mojom ('k') | components/arc/obb_mounter/arc_obb_mounter_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698