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" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/posix/eintr_wrapper.h" | 14 #include "base/posix/eintr_wrapper.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "base/threading/worker_pool.h" | 17 #include "base/threading/worker_pool.h" |
18 #include "dbus/file_descriptor.h" | |
19 | 18 |
20 namespace chromeos { | 19 namespace chromeos { |
21 | 20 |
22 namespace { | 21 namespace { |
23 | 22 |
24 const char kOpenFailedError[] = "open_failed"; | 23 const char kOpenFailedError[] = "open_failed"; |
25 | 24 |
26 // So that real devices can be accessed by tests and "Chromium OS on Linux" this | 25 // So that real devices can be accessed by tests and "Chromium OS on Linux" this |
27 // function implements a simplified version of the method implemented by the | 26 // function implements a simplified version of the method implemented by the |
28 // permission broker by opening the path specified and returning the resulting | 27 // permission broker by opening the path specified and returning the resulting |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 92 } |
94 | 93 |
95 void FakePermissionBrokerClient::ReleaseUdpPort( | 94 void FakePermissionBrokerClient::ReleaseUdpPort( |
96 uint16_t port, | 95 uint16_t port, |
97 const std::string& interface, | 96 const std::string& interface, |
98 const ResultCallback& callback) { | 97 const ResultCallback& callback) { |
99 callback.Run(true); | 98 callback.Run(true); |
100 } | 99 } |
101 | 100 |
102 } // namespace chromeos | 101 } // namespace chromeos |
OLD | NEW |