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

Side by Side Diff: net/tools/quic/quic_socket_utils.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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
« no previous file with comments | « net/tools/quic/quic_socket_utils.h ('k') | net/tools/quic/quic_spdy_client_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "net/tools/quic/quic_socket_utils.h" 5 #include "net/tools/quic/quic_socket_utils.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <linux/net_tstamp.h> 8 #include <linux/net_tstamp.h>
9 #include <netinet/in.h> 9 #include <netinet/in.h>
10 #include <string.h> 10 #include <string.h>
11 #include <sys/socket.h> 11 #include <sys/socket.h>
12 #include <sys/uio.h> 12 #include <sys/uio.h>
13 #include <string> 13 #include <string>
14 14
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "net/quic/quic_bug_tracker.h" 16 #include "net/quic/core/quic_bug_tracker.h"
17 #include "net/quic/quic_flags.h" 17 #include "net/quic/core/quic_flags.h"
18 #include "net/quic/quic_protocol.h" 18 #include "net/quic/core/quic_protocol.h"
19 19
20 #ifndef SO_RXQ_OVFL 20 #ifndef SO_RXQ_OVFL
21 #define SO_RXQ_OVFL 40 21 #define SO_RXQ_OVFL 40
22 #endif 22 #endif
23 23
24 namespace net { 24 namespace net {
25 25
26 // static 26 // static
27 void QuicSocketUtils::GetAddressAndTimestampFromMsghdr( 27 void QuicSocketUtils::GetAddressAndTimestampFromMsghdr(
28 struct msghdr* hdr, 28 struct msghdr* hdr,
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 rc = SetGetSoftwareReceiveTimestamp(fd); 309 rc = SetGetSoftwareReceiveTimestamp(fd);
310 if (rc < 0) { 310 if (rc < 0) {
311 LOG(WARNING) << "SO_TIMESTAMPING not supported; using fallback: " 311 LOG(WARNING) << "SO_TIMESTAMPING not supported; using fallback: "
312 << strerror(errno); 312 << strerror(errno);
313 } 313 }
314 314
315 return fd; 315 return fd;
316 } 316 }
317 317
318 } // namespace net 318 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_socket_utils.h ('k') | net/tools/quic/quic_spdy_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698