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

Side by Side Diff: chromeos/dbus/fake_permission_broker_client.h

Issue 1686823002: Remove chromeos::PermissionBrokerClient::RequestPathAccess(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | chromeos/dbus/fake_permission_broker_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chromeos/dbus/permission_broker_client.h" 12 #include "chromeos/dbus/permission_broker_client.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class CHROMEOS_EXPORT FakePermissionBrokerClient 16 class CHROMEOS_EXPORT FakePermissionBrokerClient
17 : public PermissionBrokerClient { 17 : public PermissionBrokerClient {
18 public: 18 public:
19 FakePermissionBrokerClient(); 19 FakePermissionBrokerClient();
20 ~FakePermissionBrokerClient() override; 20 ~FakePermissionBrokerClient() override;
21 21
22 void Init(dbus::Bus* bus) override; 22 void Init(dbus::Bus* bus) override;
23 void CheckPathAccess(const std::string& path, 23 void CheckPathAccess(const std::string& path,
24 const ResultCallback& callback) override; 24 const ResultCallback& callback) override;
25 void RequestPathAccess(const std::string& path,
26 int interface_id,
27 const ResultCallback& callback) override;
28 void OpenPath(const std::string& path, 25 void OpenPath(const std::string& path,
29 const OpenPathCallback& callback) override; 26 const OpenPathCallback& callback) override;
30 void RequestTcpPortAccess(uint16_t port, 27 void RequestTcpPortAccess(uint16_t port,
31 const std::string& interface, 28 const std::string& interface,
32 const dbus::FileDescriptor& lifeline_fd, 29 const dbus::FileDescriptor& lifeline_fd,
33 const ResultCallback& callback) override; 30 const ResultCallback& callback) override;
34 void RequestUdpPortAccess(uint16_t port, 31 void RequestUdpPortAccess(uint16_t port,
35 const std::string& interface, 32 const std::string& interface,
36 const dbus::FileDescriptor& lifeline_fd, 33 const dbus::FileDescriptor& lifeline_fd,
37 const ResultCallback& callback) override; 34 const ResultCallback& callback) override;
38 void ReleaseTcpPort(uint16_t port, 35 void ReleaseTcpPort(uint16_t port,
39 const std::string& interface, 36 const std::string& interface,
40 const ResultCallback& callback) override; 37 const ResultCallback& callback) override;
41 void ReleaseUdpPort(uint16_t port, 38 void ReleaseUdpPort(uint16_t port,
42 const std::string& interface, 39 const std::string& interface,
43 const ResultCallback& callback) override; 40 const ResultCallback& callback) override;
44 41
45 private: 42 private:
46 DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient); 43 DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient);
47 }; 44 };
48 45
49 } // namespace chromeos 46 } // namespace chromeos
50 47
51 #endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ 48 #endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/fake_permission_broker_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698