| OLD | NEW |
| 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 <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 FakePermissionBrokerClient::~FakePermissionBrokerClient() {} | 47 FakePermissionBrokerClient::~FakePermissionBrokerClient() {} |
| 48 | 48 |
| 49 void FakePermissionBrokerClient::Init(dbus::Bus* bus) {} | 49 void FakePermissionBrokerClient::Init(dbus::Bus* bus) {} |
| 50 | 50 |
| 51 void FakePermissionBrokerClient::CheckPathAccess( | 51 void FakePermissionBrokerClient::CheckPathAccess( |
| 52 const std::string& path, | 52 const std::string& path, |
| 53 const ResultCallback& callback) { | 53 const ResultCallback& callback) { |
| 54 callback.Run(true); | 54 callback.Run(true); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void FakePermissionBrokerClient::RequestPathAccess( | |
| 58 const std::string& path, | |
| 59 int interface_id, | |
| 60 const ResultCallback& callback) { | |
| 61 callback.Run(true); | |
| 62 } | |
| 63 | |
| 64 void FakePermissionBrokerClient::OpenPath(const std::string& path, | 57 void FakePermissionBrokerClient::OpenPath(const std::string& path, |
| 65 const OpenPathCallback& callback) { | 58 const OpenPathCallback& callback) { |
| 66 base::WorkerPool::PostTask(FROM_HERE, | 59 base::WorkerPool::PostTask(FROM_HERE, |
| 67 base::Bind(&OpenPathAndValidate, path, callback, | 60 base::Bind(&OpenPathAndValidate, path, callback, |
| 68 base::ThreadTaskRunnerHandle::Get()), | 61 base::ThreadTaskRunnerHandle::Get()), |
| 69 false); | 62 false); |
| 70 } | 63 } |
| 71 | 64 |
| 72 void FakePermissionBrokerClient::RequestTcpPortAccess( | 65 void FakePermissionBrokerClient::RequestTcpPortAccess( |
| 73 uint16_t port, | 66 uint16_t port, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 95 } | 88 } |
| 96 | 89 |
| 97 void FakePermissionBrokerClient::ReleaseUdpPort( | 90 void FakePermissionBrokerClient::ReleaseUdpPort( |
| 98 uint16_t port, | 91 uint16_t port, |
| 99 const std::string& interface, | 92 const std::string& interface, |
| 100 const ResultCallback& callback) { | 93 const ResultCallback& callback) { |
| 101 callback.Run(true); | 94 callback.Run(true); |
| 102 } | 95 } |
| 103 | 96 |
| 104 } // namespace chromeos | 97 } // namespace chromeos |
| OLD | NEW |