forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfake_arc_appfuse_provider_client.cc
46 lines (35 loc) · 1.44 KB
/
fake_arc_appfuse_provider_client.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright 2018 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.
#include "chromeos/dbus/fake_arc_appfuse_provider_client.h"
#include <utility>
#include "base/bind.h"
#include "base/callback.h"
#include "base/threading/thread_task_runner_handle.h"
namespace chromeos {
FakeArcAppfuseProviderClient::FakeArcAppfuseProviderClient() = default;
FakeArcAppfuseProviderClient::~FakeArcAppfuseProviderClient() = default;
void FakeArcAppfuseProviderClient::Init(dbus::Bus* bus) {}
void FakeArcAppfuseProviderClient::Mount(
uint32_t uid,
int32_t mount_id,
DBusMethodCallback<base::ScopedFD> callback) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::BindOnce(std::move(callback), base::ScopedFD()));
}
void FakeArcAppfuseProviderClient::Unmount(uint32_t uid,
int32_t mount_id,
VoidDBusMethodCallback callback) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::BindOnce(std::move(callback), false));
}
void FakeArcAppfuseProviderClient::OpenFile(
uint32_t uid,
int32_t mount_id,
int32_t file_id,
int32_t flags,
DBusMethodCallback<base::ScopedFD> callback) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::BindOnce(std::move(callback), base::ScopedFD()));
}
} // namespace chromeos