Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chromeos / dbus / fake_permission_broker_client.h
blob6a1ddee6266ab2f5a9c7210a85a3b711d985499a
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 CHROMEOS_EXPORT FakePermissionBrokerClient
15 : public PermissionBrokerClient {
16 public:
17 FakePermissionBrokerClient();
18 ~FakePermissionBrokerClient() override;
20 void Init(dbus::Bus* bus) override;
21 void CheckPathAccess(const std::string& path,
22 const ResultCallback& callback) override;
23 void RequestPathAccess(const std::string& path,
24 int interface_id,
25 const ResultCallback& callback) override;
26 void OpenPath(const std::string& path,
27 const OpenPathCallback& callback) override;
28 void RequestTcpPortAccess(uint16 port,
29 const std::string& interface,
30 const dbus::FileDescriptor& lifeline_fd,
31 const ResultCallback& callback) override;
32 void RequestUdpPortAccess(uint16 port,
33 const std::string& interface,
34 const dbus::FileDescriptor& lifeline_fd,
35 const ResultCallback& callback) override;
36 void ReleaseTcpPort(uint16 port,
37 const std::string& interface,
38 const ResultCallback& callback) override;
39 void ReleaseUdpPort(uint16 port,
40 const std::string& interface,
41 const ResultCallback& callback) override;
43 private:
44 DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient);
47 } // namespace chromeos
49 #endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_