summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket_pool.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket/client_socket_pool.h')
-rw-r--r--net/socket/client_socket_pool.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/socket/client_socket_pool.h b/net/socket/client_socket_pool.h
index 1c3784f..493fff1 100644
--- a/net/socket/client_socket_pool.h
+++ b/net/socket/client_socket_pool.h
@@ -137,9 +137,10 @@ struct SocketParamTraits : public base::false_type {
template <typename PoolType, typename SocketParams>
void CheckIsValidSocketParamsForPool() {
- COMPILE_ASSERT(!base::is_pointer<SocketParams>::value,
+ COMPILE_ASSERT(!base::is_pointer<scoped_refptr<SocketParams> >::value,
socket_params_cannot_be_pointer);
- COMPILE_ASSERT((SocketParamTraits<PoolType, SocketParams>::value),
+ COMPILE_ASSERT((SocketParamTraits<PoolType,
+ scoped_refptr<SocketParams> >::value),
invalid_socket_params_for_pool);
}
@@ -147,7 +148,8 @@ void CheckIsValidSocketParamsForPool() {
// should be optimized out by the compiler.
#define REGISTER_SOCKET_PARAMS_FOR_POOL(pool_type, socket_params) \
template<> \
-struct SocketParamTraits<pool_type, socket_params> : public base::true_type { \
+struct SocketParamTraits<pool_type, scoped_refptr<socket_params> > \
+ : public base::true_type { \
}
} // namespace net