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

Side by Side Diff: net/dns/dns_client.h

Issue 8929002: Don't attempt to forward declare StringPiece. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « net/base/big_endian.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_DNS_DNS_CLIENT_H_ 5 #ifndef NET_DNS_DNS_CLIENT_H_
6 #define NET_DNS_DNS_CLIENT_H_ 6 #define NET_DNS_DNS_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/string_piece.h"
14 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
15 16
16 namespace base {
17 class StringPiece;
18 }
19
20 namespace net { 17 namespace net {
21 18
22 class BoundNetLog; 19 class BoundNetLog;
23 class ClientSocketFactory; 20 class ClientSocketFactory;
24 class DnsResponse; 21 class DnsResponse;
25 class DnsSession; 22 class DnsSession;
26 23
27 // DnsClient performs asynchronous DNS queries. DnsClient takes care of 24 // DnsClient performs asynchronous DNS queries. DnsClient takes care of
28 // retransmissions, DNS server fallback (or round-robin), suffix search, and 25 // retransmissions, DNS server fallback (or round-robin), suffix search, and
29 // simple response validation ("does it match the query") to fight poisoning. 26 // simple response validation ("does it match the query") to fight poisoning.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const BoundNetLog& source_net_log) WARN_UNUSED_RESULT = 0; 81 const BoundNetLog& source_net_log) WARN_UNUSED_RESULT = 0;
85 82
86 // Creates a socket-based DnsClient using the |session|. 83 // Creates a socket-based DnsClient using the |session|.
87 static DnsClient* CreateClient(DnsSession* session) WARN_UNUSED_RESULT; 84 static DnsClient* CreateClient(DnsSession* session) WARN_UNUSED_RESULT;
88 }; 85 };
89 86
90 } // namespace net 87 } // namespace net
91 88
92 #endif // NET_DNS_DNS_CLIENT_H_ 89 #endif // NET_DNS_DNS_CLIENT_H_
93 90
OLDNEW
« no previous file with comments | « net/base/big_endian.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698