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

Side by Side Diff: chrome/utility/local_discovery/service_discovery_message_handler.cc

Issue 252023003: Revert of Revert of Move service_discovery_client_impl.* into chrome/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/utility/local_discovery/service_discovery_client_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « chrome/utility/local_discovery/service_discovery_client_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698