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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> 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 "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 20 matching lines...) Expand all
31 #include "net/base/io_buffer.h" 31 #include "net/base/io_buffer.h"
32 #include "net/base/ip_address.h" 32 #include "net/base/ip_address.h"
33 #include "net/base/ip_endpoint.h" 33 #include "net/base/ip_endpoint.h"
34 #include "net/base/net_errors.h" 34 #include "net/base/net_errors.h"
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_event_type.h" 42 #include "net/log/net_log_event_type.h"
43 #include "net/log/net_log_source.h"
44 #include "net/log/net_log_with_source.h"
42 #include "net/socket/stream_socket.h" 45 #include "net/socket/stream_socket.h"
43 #include "net/udp/datagram_client_socket.h" 46 #include "net/udp/datagram_client_socket.h"
44 47
45 namespace net { 48 namespace net {
46 49
47 namespace { 50 namespace {
48 51
49 // 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
50 // macro as the underlying HISTOGRAM macro creates static variables. 53 // macro as the underlying HISTOGRAM macro creates static variables.
51 #define DNS_HISTOGRAM(name, time) UMA_HISTOGRAM_CUSTOM_TIMES(name, time, \ 54 #define DNS_HISTOGRAM(name, time) UMA_HISTOGRAM_CUSTOM_TIMES(name, time, \
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 } // namespace 999 } // namespace
997 1000
998 // static 1001 // static
999 std::unique_ptr<DnsTransactionFactory> DnsTransactionFactory::CreateFactory( 1002 std::unique_ptr<DnsTransactionFactory> DnsTransactionFactory::CreateFactory(
1000 DnsSession* session) { 1003 DnsSession* session) {
1001 return std::unique_ptr<DnsTransactionFactory>( 1004 return std::unique_ptr<DnsTransactionFactory>(
1002 new DnsTransactionFactoryImpl(session)); 1005 new DnsTransactionFactoryImpl(session));
1003 } 1006 }
1004 1007
1005 } // namespace net 1008 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698