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

Side by Side 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 unified diff | Download patch
OLDNEW
(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 // This class handles OBB mount/unmount requests from Android.
16 class ArcObbMounterBridge : public ArcService,
17 public ArcBridgeService::Observer,
18 public mojom::ObbMounterHost {
19 public:
20 explicit ArcObbMounterBridge(ArcBridgeService* bridge_service);
21 ~ArcObbMounterBridge() override;
22
23 // ArcBridgeService::Observer overrides:
24 void OnObbMounterInstanceReady() override;
25
26 // mojom::ObbMounterHost overrides:
27 void MountObb(const mojo::String& obb_file,
28 const mojo::String& target_path,
29 int32_t owner_gid,
30 const MountObbCallback& callback) override;
31 void UnmountObb(const mojo::String& target_path,
32 const UnmountObbCallback& callback) override;
33
34 private:
35 mojo::Binding<mojom::ObbMounterHost> binding_;
36
37 DISALLOW_COPY_AND_ASSIGN(ArcObbMounterBridge);
38 };
39
40 } // namespace arc
41
42 #endif // COMPONENTS_ARC_OBB_MOUNTER_ARC_OBB_MOUNTER_BRIDGE_H_
OLDNEW
« 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