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

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: 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
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,
+ 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_

Powered by Google App Engine
This is Rietveld 408576698