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

Unified Diff: net/dns/dns_socket_pool.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: net/dns/dns_socket_pool.h
diff --git a/net/dns/dns_socket_pool.h b/net/dns/dns_socket_pool.h
index 6bfe474d6a91c9251e6228838e0c46e76bc4dca8..6ab17d09224d8c2bcfc263ba0858f6b91155510e 100644
--- a/net/dns/dns_socket_pool.h
+++ b/net/dns/dns_socket_pool.h
@@ -24,19 +24,17 @@ class StreamSocket;
// to DNS servers.
class NET_EXPORT_PRIVATE DnsSocketPool {
public:
- virtual ~DnsSocketPool() { }
+ virtual ~DnsSocketPool() {}
// Creates a DnsSocketPool that implements the default strategy for managing
// sockets. (This varies by platform; see DnsSocketPoolImpl in
// dns_socket_pool.cc for details.)
- static scoped_ptr<DnsSocketPool> CreateDefault(
- ClientSocketFactory* factory);
+ static scoped_ptr<DnsSocketPool> CreateDefault(ClientSocketFactory* factory);
// Creates a DnsSocketPool that implements a "null" strategy -- no sockets are
// preallocated, allocation requests are satisfied by calling the factory
// directly, and returned sockets are deleted immediately.
- static scoped_ptr<DnsSocketPool> CreateNull(
- ClientSocketFactory* factory);
+ static scoped_ptr<DnsSocketPool> CreateNull(ClientSocketFactory* factory);
// Initializes the DnsSocketPool. |nameservers| is the list of nameservers
// for which the DnsSocketPool will manage sockets; |net_log| is the NetLog
@@ -44,9 +42,8 @@ class NET_EXPORT_PRIVATE DnsSocketPool {
//
// Initialize may not be called more than once, and must be called before
// calling AllocateSocket or FreeSocket.
- virtual void Initialize(
- const std::vector<IPEndPoint>* nameservers,
- NetLog* net_log) = 0;
+ virtual void Initialize(const std::vector<IPEndPoint>* nameservers,
+ NetLog* net_log) = 0;
// Allocates a socket that is already connected to the nameserver referenced
// by |server_index|. May return a scoped_ptr to NULL if no sockets are
@@ -57,25 +54,21 @@ class NET_EXPORT_PRIVATE DnsSocketPool {
// Frees a socket allocated by AllocateSocket. |server_index| must be the
// same index passed to AllocateSocket.
- virtual void FreeSocket(
- unsigned server_index,
- scoped_ptr<DatagramClientSocket> socket) = 0;
+ virtual void FreeSocket(unsigned server_index,
+ scoped_ptr<DatagramClientSocket> socket) = 0;
// Creates a StreamSocket from the factory for a transaction over TCP. These
// sockets are not pooled.
- scoped_ptr<StreamSocket> CreateTCPSocket(
- unsigned server_index,
- const NetLog::Source& source);
+ scoped_ptr<StreamSocket> CreateTCPSocket(unsigned server_index,
+ const NetLog::Source& source);
protected:
DnsSocketPool(ClientSocketFactory* socket_factory);
- void InitializeInternal(
- const std::vector<IPEndPoint>* nameservers,
- NetLog* net_log);
+ void InitializeInternal(const std::vector<IPEndPoint>* nameservers,
+ NetLog* net_log);
- scoped_ptr<DatagramClientSocket> CreateConnectedSocket(
- unsigned server_index);
+ scoped_ptr<DatagramClientSocket> CreateConnectedSocket(unsigned server_index);
private:
ClientSocketFactory* socket_factory_;
@@ -86,6 +79,6 @@ class NET_EXPORT_PRIVATE DnsSocketPool {
DISALLOW_COPY_AND_ASSIGN(DnsSocketPool);
};
-} // namespace net
+} // namespace net
-#endif // NET_DNS_DNS_SOCKET_POOL_H_
+#endif // NET_DNS_DNS_SOCKET_POOL_H_

Powered by Google App Engine
This is Rietveld 408576698