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

Side by Side Diff: net/quic/chromium/quic_chromium_packet_reader.cc

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 3 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 "net/quic/chromium/quic_chromium_packet_reader.h" 5 #include "net/quic/chromium/quic_chromium_packet_reader.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 #include "net/quic/core/quic_clock.h" 12 #include "net/quic/core/quic_clock.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 QuicChromiumPacketReader::QuicChromiumPacketReader( 16 QuicChromiumPacketReader::QuicChromiumPacketReader(
17 DatagramClientSocket* socket, 17 DatagramClientSocket* socket,
18 QuicClock* clock, 18 QuicClock* clock,
19 Visitor* visitor, 19 Visitor* visitor,
20 int yield_after_packets, 20 int yield_after_packets,
21 QuicTime::Delta yield_after_duration, 21 QuicTime::Delta yield_after_duration,
22 const BoundNetLog& net_log) 22 const NetLogWithSource& net_log)
23 : socket_(socket), 23 : socket_(socket),
24 visitor_(visitor), 24 visitor_(visitor),
25 read_pending_(false), 25 read_pending_(false),
26 num_packets_read_(0), 26 num_packets_read_(0),
27 clock_(clock), 27 clock_(clock),
28 yield_after_packets_(yield_after_packets), 28 yield_after_packets_(yield_after_packets),
29 yield_after_duration_(yield_after_duration), 29 yield_after_duration_(yield_after_duration),
30 yield_after_(QuicTime::Infinite()), 30 yield_after_(QuicTime::Infinite()),
31 read_buffer_(new IOBufferWithSize(static_cast<size_t>(kMaxPacketSize))), 31 read_buffer_(new IOBufferWithSize(static_cast<size_t>(kMaxPacketSize))),
32 net_log_(net_log), 32 net_log_(net_log),
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 IPEndPoint peer_address; 81 IPEndPoint peer_address;
82 socket_->GetLocalAddress(&local_address); 82 socket_->GetLocalAddress(&local_address);
83 socket_->GetPeerAddress(&peer_address); 83 socket_->GetPeerAddress(&peer_address);
84 if (!visitor_->OnPacket(packet, local_address, peer_address)) 84 if (!visitor_->OnPacket(packet, local_address, peer_address))
85 return; 85 return;
86 86
87 StartReading(); 87 StartReading();
88 } 88 }
89 89
90 } // namespace net 90 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698