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

Side by Side Diff: components/arc/obb_mounter/arc_obb_mounter_bridge.cc

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
« no previous file with comments | « components/arc/obb_mounter/arc_obb_mounter_bridge.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "components/arc/obb_mounter/arc_obb_mounter_bridge.h"
6
7 #include "base/logging.h"
8 #include "components/arc/arc_bridge_service.h"
9
10 namespace arc {
11
12 ArcObbMounterBridge::ArcObbMounterBridge(ArcBridgeService* bridge_service)
13 : ArcService(bridge_service),
14 binding_(this) {
15 arc_bridge_service()->AddObserver(this);
16 }
17
18 ArcObbMounterBridge::~ArcObbMounterBridge() {
19 arc_bridge_service()->RemoveObserver(this);
20 }
21
22 void ArcObbMounterBridge::OnObbMounterInstanceReady() {
23 mojom::ObbMounterInstance* obb_mounter_instance =
24 arc_bridge_service()->obb_mounter_instance();
25 obb_mounter_instance->Init(binding_.CreateInterfacePtrAndBind());
26 }
27
28 void ArcObbMounterBridge::MountObb(const mojo::String& obb_file,
29 const mojo::String& target_path,
30 int32_t owner_gid,
31 const MountObbCallback& callback) {
32 // TODO(hashimoto): Implement this. crbug.com/613480
33 NOTIMPLEMENTED();
34 callback.Run(false);
35 }
36
37 void ArcObbMounterBridge::UnmountObb(const mojo::String& target_path,
38 const UnmountObbCallback& callback) {
39 // TODO(hashimoto): Implement this. crbug.com/613480
40 NOTIMPLEMENTED();
41 callback.Run(false);
42 }
43
44 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/obb_mounter/arc_obb_mounter_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698