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

Side by Side Diff: net/tools/gdig/gdig.cc

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stdio.h> 5 #include <stdio.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 unsigned current_index = replay_log_index_; 464 unsigned current_index = replay_log_index_;
465 CompletionCallback callback = base::Bind(&GDig::OnResolveComplete, 465 CompletionCallback callback = base::Bind(&GDig::OnResolveComplete,
466 base::Unretained(this), 466 base::Unretained(this),
467 current_index, 467 current_index,
468 base::Owned(addrlist), 468 base::Owned(addrlist),
469 time_since_start); 469 time_since_start);
470 ++active_resolves_; 470 ++active_resolves_;
471 ++replay_log_index_; 471 ++replay_log_index_;
472 int ret = resolver_->Resolve( 472 int ret = resolver_->Resolve(
473 info, DEFAULT_PRIORITY, addrlist, callback, &request_, 473 info, DEFAULT_PRIORITY, addrlist, callback, &request_,
474 BoundNetLog::Make(log_.get(), net::NetLogSourceType::NONE)); 474 NetLogWithSource::Make(log_.get(), net::NetLogSourceType::NONE));
475 if (ret != ERR_IO_PENDING) 475 if (ret != ERR_IO_PENDING)
476 callback.Run(ret); 476 callback.Run(ret);
477 } 477 }
478 } 478 }
479 479
480 void GDig::OnResolveComplete(unsigned entry_index, 480 void GDig::OnResolveComplete(unsigned entry_index,
481 AddressList* address_list, 481 AddressList* address_list,
482 base::TimeDelta resolve_start_time, 482 base::TimeDelta resolve_start_time,
483 int val) { 483 int val) {
484 DCHECK_GT(active_resolves_, 0); 484 DCHECK_GT(active_resolves_, 0);
(...skipping 28 matching lines...) Expand all
513 } 513 }
514 514
515 } // empty namespace 515 } // empty namespace
516 516
517 } // namespace net 517 } // namespace net
518 518
519 int main(int argc, const char* argv[]) { 519 int main(int argc, const char* argv[]) {
520 net::GDig dig; 520 net::GDig dig;
521 return dig.Main(argc, argv); 521 return dig.Main(argc, argv);
522 } 522 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698