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

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

Issue 1034333002: Check USB device path access when prompting users to select a device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move MockPermissionBrokerClient into its own header. Created 5 years, 8 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 | « chromeos/chromeos.gyp ('k') | 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chromeos/dbus/permission_broker_client.h" 10 #include "chromeos/dbus/permission_broker_client.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 class FakePermissionBrokerClient : public PermissionBrokerClient { 14 class CHROMEOS_EXPORT FakePermissionBrokerClient
15 : public PermissionBrokerClient {
15 public: 16 public:
16 FakePermissionBrokerClient(); 17 FakePermissionBrokerClient();
17 ~FakePermissionBrokerClient() override; 18 ~FakePermissionBrokerClient() override;
18 19
19 void Init(dbus::Bus* bus) override; 20 void Init(dbus::Bus* bus) override;
21 void CheckPathAccess(const std::string& path,
22 const ResultCallback& callback) override;
20 void RequestPathAccess(const std::string& path, 23 void RequestPathAccess(const std::string& path,
21 int interface_id, 24 int interface_id,
22 const ResultCallback& callback) override; 25 const ResultCallback& callback) override;
23 void RequestTcpPortAccess(uint16 port, 26 void RequestTcpPortAccess(uint16 port,
24 const std::string& interface, 27 const std::string& interface,
25 const dbus::FileDescriptor& lifeline_fd, 28 const dbus::FileDescriptor& lifeline_fd,
26 const ResultCallback& callback) override; 29 const ResultCallback& callback) override;
27 void RequestUdpPortAccess(uint16 port, 30 void RequestUdpPortAccess(uint16 port,
28 const std::string& interface, 31 const std::string& interface,
29 const dbus::FileDescriptor& lifeline_fd, 32 const dbus::FileDescriptor& lifeline_fd,
30 const ResultCallback& callback) override; 33 const ResultCallback& callback) override;
31 void ReleaseTcpPort(uint16 port, 34 void ReleaseTcpPort(uint16 port,
32 const std::string& interface, 35 const std::string& interface,
33 const ResultCallback& callback) override; 36 const ResultCallback& callback) override;
34 void ReleaseUdpPort(uint16 port, 37 void ReleaseUdpPort(uint16 port,
35 const std::string& interface, 38 const std::string& interface,
36 const ResultCallback& callback) override; 39 const ResultCallback& callback) override;
37 40
38 private: 41 private:
39 DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient); 42 DISALLOW_COPY_AND_ASSIGN(FakePermissionBrokerClient);
40 }; 43 };
41 44
42 } // namespace chromeos 45 } // namespace chromeos
43 46
44 #endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_ 47 #endif // CHROMEOS_DBUS_FAKE_PERMISSION_BROKER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/fake_permission_broker_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698