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

Side by Side Diff: net/quic/core/quic_socket_address_coder.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
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 "net/quic/quic_socket_address_coder.h" 5 #include "net/quic/core/quic_socket_address_coder.h"
6 6
7 #include "net/base/ip_address.h" 7 #include "net/base/ip_address.h"
8 #include "net/base/sys_addrinfo.h" 8 #include "net/base/sys_addrinfo.h"
9 9
10 using std::string; 10 using std::string;
11 11
12 namespace net { 12 namespace net {
13 13
14 namespace { 14 namespace {
15 15
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 if (length != sizeof(port)) { 80 if (length != sizeof(port)) {
81 return false; 81 return false;
82 } 82 }
83 memcpy(&port, data, length); 83 memcpy(&port, data, length);
84 84
85 address_ = IPEndPoint(IPAddress(ip), port); 85 address_ = IPEndPoint(IPAddress(ip), port);
86 return true; 86 return true;
87 } 87 }
88 88
89 } // namespace net 89 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_socket_address_coder.h ('k') | net/quic/core/quic_socket_address_coder_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698