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

Side by Side Diff: chrome/common/local_discovery/service_discovery_client_impl.cc

Issue 256923003: Move service_discovery_client_impl.* into chrome/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sun 04/27/2014 11:39:04.49 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
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 <utility> 5 #include <utility>
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.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 "net/dns/dns_protocol.h" 12 #include "net/dns/dns_protocol.h"
13 #include "net/dns/record_rdata.h" 13 #include "net/dns/record_rdata.h"
14 14
15 namespace local_discovery { 15 namespace local_discovery {
16 16
17 namespace { 17 namespace {
18 // TODO(noamsml): Make this configurable through the LocalDomainResolver 18 // TODO(noamsml): Make this configurable through the LocalDomainResolver
19 // interface. 19 // interface.
20 const int kLocalDomainSecondAddressTimeoutMs = 100; 20 const int kLocalDomainSecondAddressTimeoutMs = 100;
21 21
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 } 575 }
576 576
577 void LocalDomainResolverImpl::SendResolvedAddresses() { 577 void LocalDomainResolverImpl::SendResolvedAddresses() {
578 transaction_a_.reset(); 578 transaction_a_.reset();
579 transaction_aaaa_.reset(); 579 transaction_aaaa_.reset();
580 timeout_callback_.Cancel(); 580 timeout_callback_.Cancel();
581 callback_.Run(IsSuccess(), address_ipv4_, address_ipv6_); 581 callback_.Run(IsSuccess(), address_ipv4_, address_ipv6_);
582 } 582 }
583 583
584 } // namespace local_discovery 584 } // namespace local_discovery
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698