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

Side by Side Diff: net/dns/dns_transaction.cc

Issue 2508593002: net: move udp directory into socket (Closed)
Patch Set: revert sys/socket.h change Created 4 years, 1 month 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/dns/dns_socket_pool.cc ('k') | net/dns/host_resolver_impl.cc » ('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/dns/dns_transaction.h" 5 #include "net/dns/dns_transaction.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 24 matching lines...) Expand all
35 #include "net/dns/dns_protocol.h" 35 #include "net/dns/dns_protocol.h"
36 #include "net/dns/dns_query.h" 36 #include "net/dns/dns_query.h"
37 #include "net/dns/dns_response.h" 37 #include "net/dns/dns_response.h"
38 #include "net/dns/dns_session.h" 38 #include "net/dns/dns_session.h"
39 #include "net/dns/dns_util.h" 39 #include "net/dns/dns_util.h"
40 #include "net/log/net_log.h" 40 #include "net/log/net_log.h"
41 #include "net/log/net_log_capture_mode.h" 41 #include "net/log/net_log_capture_mode.h"
42 #include "net/log/net_log_event_type.h" 42 #include "net/log/net_log_event_type.h"
43 #include "net/log/net_log_source.h" 43 #include "net/log/net_log_source.h"
44 #include "net/log/net_log_with_source.h" 44 #include "net/log/net_log_with_source.h"
45 #include "net/socket/datagram_client_socket.h"
45 #include "net/socket/stream_socket.h" 46 #include "net/socket/stream_socket.h"
46 #include "net/udp/datagram_client_socket.h"
47 47
48 namespace net { 48 namespace net {
49 49
50 namespace { 50 namespace {
51 51
52 // Provide a common macro to simplify code and readability. We must use a 52 // Provide a common macro to simplify code and readability. We must use a
53 // macro as the underlying HISTOGRAM macro creates static variables. 53 // macro as the underlying HISTOGRAM macro creates static variables.
54 #define DNS_HISTOGRAM(name, time) UMA_HISTOGRAM_CUSTOM_TIMES(name, time, \ 54 #define DNS_HISTOGRAM(name, time) UMA_HISTOGRAM_CUSTOM_TIMES(name, time, \
55 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromHours(1), 100) 55 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromHours(1), 100)
56 56
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 } // namespace 999 } // namespace
1000 1000
1001 // static 1001 // static
1002 std::unique_ptr<DnsTransactionFactory> DnsTransactionFactory::CreateFactory( 1002 std::unique_ptr<DnsTransactionFactory> DnsTransactionFactory::CreateFactory(
1003 DnsSession* session) { 1003 DnsSession* session) {
1004 return std::unique_ptr<DnsTransactionFactory>( 1004 return std::unique_ptr<DnsTransactionFactory>(
1005 new DnsTransactionFactoryImpl(session)); 1005 new DnsTransactionFactoryImpl(session));
1006 } 1006 }
1007 1007
1008 } // namespace net 1008 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/dns_socket_pool.cc ('k') | net/dns/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698