| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/network/firewall_hole.h" | 5 #include "chromeos/network/firewall_hole.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <unistd.h> | 9 #include <unistd.h> |
| 10 | 10 |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/location.h" | 14 #include "base/location.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.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" | |
| 18 #include "chromeos/dbus/dbus_thread_manager.h" | 17 #include "chromeos/dbus/dbus_thread_manager.h" |
| 19 #include "chromeos/dbus/permission_broker_client.h" | 18 #include "chromeos/dbus/permission_broker_client.h" |
| 20 | 19 |
| 21 namespace chromeos { | 20 namespace chromeos { |
| 22 | 21 |
| 23 namespace { | 22 namespace { |
| 24 | 23 |
| 25 const char* PortTypeToString(FirewallHole::PortType type) { | 24 const char* PortTypeToString(FirewallHole::PortType type) { |
| 26 switch (type) { | 25 switch (type) { |
| 27 case FirewallHole::PortType::TCP: | 26 case FirewallHole::PortType::TCP: |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 FirewallHole::FirewallHole(PortType type, | 115 FirewallHole::FirewallHole(PortType type, |
| 117 uint16_t port, | 116 uint16_t port, |
| 118 const std::string& interface, | 117 const std::string& interface, |
| 119 base::ScopedFD lifeline_fd) | 118 base::ScopedFD lifeline_fd) |
| 120 : type_(type), | 119 : type_(type), |
| 121 port_(port), | 120 port_(port), |
| 122 interface_(interface), | 121 interface_(interface), |
| 123 lifeline_fd_(std::move(lifeline_fd)) {} | 122 lifeline_fd_(std::move(lifeline_fd)) {} |
| 124 | 123 |
| 125 } // namespace chromeos | 124 } // namespace chromeos |
| OLD | NEW |