ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / chromeos / dbus / fake_permission_broker_client.h
blob4f7fff469922d7455ec641e2e3a048ddc9826664
1 // Copyright 2013 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.
5 #ifndef CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chromeos/dbus/permission_broker_client.h"
12 namespace chromeos {
14 class FakePermissionBrokerClient : public PermissionBrokerClient {
15 public:
16 FakePermissionBrokerClient();
17 ~FakePermissionBrokerClient() override;
19 void Init(dbus::Bus* bus) override;
20 void RequestPathAccess(const std::string& path,
21 int interface_id,
22 const ResultCallback& callback) override;
23 void RequestTcpPortAccess(uint16 port,
24 const std::string& interface,
25 const dbus::FileDescriptor& lifeline_fd,
26 const ResultCallback& callback) override;
27 void RequestUdpPortAccess(uint16 port,
28 const std::string& interface,
29 const dbus::FileDescriptor& lifeline_fd,
30 const ResultCallback& callback) override;
31 void ReleaseTcpPort(uint16 port,
32 const std::string& interface,
33 const ResultCallback& callback) override;
34 void ReleaseUdpPort(uint16 port,
35 const std::string& interface,
36 const ResultCallback& callback) override;
38 private:
39 DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient);
42 } // namespace chromeos
44 #endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_