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

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

Issue 960033002: Add firewall methods to chromeos::PermissionBrokerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 #include "chromeos/dbus/fake_permission_broker_client.h" 5 #include "chromeos/dbus/fake_permission_broker_client.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 8
9 namespace chromeos { 9 namespace chromeos {
10 10
11 FakePermissionBrokerClient::FakePermissionBrokerClient() {} 11 FakePermissionBrokerClient::FakePermissionBrokerClient() {}
12 12
13 FakePermissionBrokerClient::~FakePermissionBrokerClient() {} 13 FakePermissionBrokerClient::~FakePermissionBrokerClient() {}
14 14
15 void FakePermissionBrokerClient::Init(dbus::Bus* bus) {} 15 void FakePermissionBrokerClient::Init(dbus::Bus* bus) {}
16 16
17 void FakePermissionBrokerClient::RequestPathAccess( 17 void FakePermissionBrokerClient::RequestPathAccess(
18 const std::string& path, 18 const std::string& path,
19 int interface_id, 19 int interface_id,
20 const ResultCallback& callback) { 20 const ResultCallback& callback) {
21 callback.Run(false); 21 callback.Run(false);
22 } 22 }
23 23
24 void FakePermissionBrokerClient::RequestTcpPortAccess(
25 uint16 port,
26 const std::string& interface,
27 const dbus::FileDescriptor& lifeline_fd,
28 const ResultCallback& callback) {
29 callback.Run(false);
30 }
31
32 void FakePermissionBrokerClient::RequestUdpPortAccess(
33 uint16 port,
34 const std::string& interface,
35 const dbus::FileDescriptor& lifeline_fd,
36 const ResultCallback& callback) {
37 callback.Run(false);
38 }
39
40 void FakePermissionBrokerClient::ReleaseTcpPort(
41 uint16 port,
42 const std::string& interface,
43 const ResultCallback& callback) {
44 callback.Run(false);
45 }
46
47 void FakePermissionBrokerClient::ReleaseUdpPort(
48 uint16 port,
49 const std::string& interface,
50 const ResultCallback& callback) {
51 callback.Run(false);
52 }
53
24 } // namespace chromeos 54 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698