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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/location.h" 7 #include "base/location.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 } 522 }
523 523
524 if (address_family_ == net::ADDRESS_FAMILY_IPV6 || 524 if (address_family_ == net::ADDRESS_FAMILY_IPV6 ||
525 address_family_ == net::ADDRESS_FAMILY_UNSPECIFIED) { 525 address_family_ == net::ADDRESS_FAMILY_UNSPECIFIED) {
526 transaction_aaaa_ = CreateTransaction(net::dns_protocol::kTypeAAAA); 526 transaction_aaaa_ = CreateTransaction(net::dns_protocol::kTypeAAAA);
527 transaction_aaaa_->Start(); 527 transaction_aaaa_->Start();
528 } 528 }
529 } 529 }
530 530
531 scoped_ptr<net::MDnsTransaction> LocalDomainResolverImpl::CreateTransaction( 531 scoped_ptr<net::MDnsTransaction> LocalDomainResolverImpl::CreateTransaction(
532 uint16 type) { 532 uint16_t type) {
533 return mdns_client_->CreateTransaction( 533 return mdns_client_->CreateTransaction(
534 type, domain_, net::MDnsTransaction::SINGLE_RESULT | 534 type, domain_, net::MDnsTransaction::SINGLE_RESULT |
535 net::MDnsTransaction::QUERY_CACHE | 535 net::MDnsTransaction::QUERY_CACHE |
536 net::MDnsTransaction::QUERY_NETWORK, 536 net::MDnsTransaction::QUERY_NETWORK,
537 base::Bind(&LocalDomainResolverImpl::OnTransactionComplete, 537 base::Bind(&LocalDomainResolverImpl::OnTransactionComplete,
538 base::Unretained(this))); 538 base::Unretained(this)));
539 } 539 }
540 540
541 void LocalDomainResolverImpl::OnTransactionComplete( 541 void LocalDomainResolverImpl::OnTransactionComplete(
542 net::MDnsTransaction::Result result, const net::RecordParsed* record) { 542 net::MDnsTransaction::Result result, const net::RecordParsed* record) {
(...skipping 30 matching lines...) Expand all
573 } 573 }
574 574
575 void LocalDomainResolverImpl::SendResolvedAddresses() { 575 void LocalDomainResolverImpl::SendResolvedAddresses() {
576 transaction_a_.reset(); 576 transaction_a_.reset();
577 transaction_aaaa_.reset(); 577 transaction_aaaa_.reset();
578 timeout_callback_.Cancel(); 578 timeout_callback_.Cancel();
579 callback_.Run(IsSuccess(), address_ipv4_, address_ipv6_); 579 callback_.Run(IsSuccess(), address_ipv4_, address_ipv6_);
580 } 580 }
581 581
582 } // namespace local_discovery 582 } // namespace local_discovery
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698