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

Side by Side Diff: net/socket/transport_client_socket_pool.h

Issue 1158193006: Converted bare pointer to scoped_ptr<> in net/socket and net/http (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 ClientSocketHandle* handle) override; 252 ClientSocketHandle* handle) override;
253 void ReleaseSocket(const std::string& group_name, 253 void ReleaseSocket(const std::string& group_name,
254 scoped_ptr<StreamSocket> socket, 254 scoped_ptr<StreamSocket> socket,
255 int id) override; 255 int id) override;
256 void FlushWithError(int error) override; 256 void FlushWithError(int error) override;
257 void CloseIdleSockets() override; 257 void CloseIdleSockets() override;
258 int IdleSocketCount() const override; 258 int IdleSocketCount() const override;
259 int IdleSocketCountInGroup(const std::string& group_name) const override; 259 int IdleSocketCountInGroup(const std::string& group_name) const override;
260 LoadState GetLoadState(const std::string& group_name, 260 LoadState GetLoadState(const std::string& group_name,
261 const ClientSocketHandle* handle) const override; 261 const ClientSocketHandle* handle) const override;
262 base::DictionaryValue* GetInfoAsValue( 262 scoped_ptr<base::DictionaryValue> GetInfoAsValue(
263 const std::string& name, 263 const std::string& name,
264 const std::string& type, 264 const std::string& type,
265 bool include_nested_pools) const override; 265 bool include_nested_pools) const override;
266 base::TimeDelta ConnectionTimeout() const override; 266 base::TimeDelta ConnectionTimeout() const override;
267 267
268 // HigherLayeredPool implementation. 268 // HigherLayeredPool implementation.
269 bool IsStalled() const override; 269 bool IsStalled() const override;
270 void AddHigherLayeredPool(HigherLayeredPool* higher_pool) override; 270 void AddHigherLayeredPool(HigherLayeredPool* higher_pool) override;
271 void RemoveHigherLayeredPool(HigherLayeredPool* higher_pool) override; 271 void RemoveHigherLayeredPool(HigherLayeredPool* higher_pool) override;
272 272
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 break; 364 break;
365 } 365 }
366 } while (rv != ERR_IO_PENDING && next_state_ != STATE_NONE); 366 } while (rv != ERR_IO_PENDING && next_state_ != STATE_NONE);
367 367
368 return rv; 368 return rv;
369 } 369 }
370 370
371 } // namespace net 371 } // namespace net
372 372
373 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 373 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698