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 "chrome/utility/local_discovery/service_discovery_message_handler.h" | 5 #include "chrome/utility/local_discovery/service_discovery_message_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "chrome/common/local_discovery/local_discovery_messages.h" | 10 #include "chrome/common/local_discovery/local_discovery_messages.h" |
11 #include "chrome/utility/local_discovery/service_discovery_client_impl.h" | 11 #include "chrome/common/local_discovery/service_discovery_client_impl.h" |
12 #include "content/public/utility/utility_thread.h" | 12 #include "content/public/utility/utility_thread.h" |
13 #include "net/socket/socket_descriptor.h" | 13 #include "net/socket/socket_descriptor.h" |
14 #include "net/udp/datagram_server_socket.h" | 14 #include "net/udp/datagram_server_socket.h" |
15 | 15 |
16 namespace local_discovery { | 16 namespace local_discovery { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 void ClosePlatformSocket(net::SocketDescriptor socket); | 20 void ClosePlatformSocket(net::SocketDescriptor socket); |
21 | 21 |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 id, success, address_ipv4, address_ipv6)); | 466 id, success, address_ipv4, address_ipv6)); |
467 } | 467 } |
468 | 468 |
469 void ServiceDiscoveryMessageHandler::Send(IPC::Message* msg) { | 469 void ServiceDiscoveryMessageHandler::Send(IPC::Message* msg) { |
470 utility_task_runner_->PostTask(FROM_HERE, | 470 utility_task_runner_->PostTask(FROM_HERE, |
471 base::Bind(&SendHostMessageOnUtilityThread, | 471 base::Bind(&SendHostMessageOnUtilityThread, |
472 msg)); | 472 msg)); |
473 } | 473 } |
474 | 474 |
475 } // namespace local_discovery | 475 } // namespace local_discovery |
OLD | NEW |