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

Side by Side Diff: net/socket/client_socket_pool_manager_impl.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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ 5 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_
6 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ 6 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 24 matching lines...) Expand all
35 class TransportClientSocketPool; 35 class TransportClientSocketPool;
36 class TransportSecurityState; 36 class TransportSecurityState;
37 37
38 namespace internal { 38 namespace internal {
39 39
40 // A helper class for auto-deleting Values in the destructor. 40 // A helper class for auto-deleting Values in the destructor.
41 template <typename Key, typename Value> 41 template <typename Key, typename Value>
42 class OwnedPoolMap : public std::map<Key, Value> { 42 class OwnedPoolMap : public std::map<Key, Value> {
43 public: 43 public:
44 OwnedPoolMap() { 44 OwnedPoolMap() {
45 COMPILE_ASSERT(base::is_pointer<Value>::value, 45 COMPILE_ASSERT(base::is_pointer<Value>::value, value_must_be_a_pointer);
46 value_must_be_a_pointer);
47 } 46 }
48 47
49 ~OwnedPoolMap() { 48 ~OwnedPoolMap() { STLDeleteValues(this); }
50 STLDeleteValues(this);
51 }
52 }; 49 };
53 50
54 } // namespace internal 51 } // namespace internal
55 52
56 class ClientSocketPoolManagerImpl : public base::NonThreadSafe, 53 class ClientSocketPoolManagerImpl : public base::NonThreadSafe,
57 public ClientSocketPoolManager, 54 public ClientSocketPoolManager,
58 public CertDatabase::Observer { 55 public CertDatabase::Observer {
59 public: 56 public:
60 ClientSocketPoolManagerImpl(NetLog* net_log, 57 ClientSocketPoolManagerImpl(NetLog* net_log,
61 ClientSocketFactory* socket_factory, 58 ClientSocketFactory* socket_factory,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 141
145 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_; 142 ClientSocketPoolHistograms ssl_socket_pool_for_proxies_histograms_;
146 SSLSocketPoolMap ssl_socket_pools_for_proxies_; 143 SSLSocketPoolMap ssl_socket_pools_for_proxies_;
147 144
148 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); 145 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl);
149 }; 146 };
150 147
151 } // namespace net 148 } // namespace net
152 149
153 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ 150 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698