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

Side by Side Diff: net/socket/websocket_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 ClientSocketHandle* handle) override; 145 ClientSocketHandle* handle) override;
146 void ReleaseSocket(const std::string& group_name, 146 void ReleaseSocket(const std::string& group_name,
147 scoped_ptr<StreamSocket> socket, 147 scoped_ptr<StreamSocket> socket,
148 int id) override; 148 int id) override;
149 void FlushWithError(int error) override; 149 void FlushWithError(int error) override;
150 void CloseIdleSockets() override; 150 void CloseIdleSockets() override;
151 int IdleSocketCount() const override; 151 int IdleSocketCount() const override;
152 int IdleSocketCountInGroup(const std::string& group_name) const override; 152 int IdleSocketCountInGroup(const std::string& group_name) const override;
153 LoadState GetLoadState(const std::string& group_name, 153 LoadState GetLoadState(const std::string& group_name,
154 const ClientSocketHandle* handle) const override; 154 const ClientSocketHandle* handle) const override;
155 base::DictionaryValue* GetInfoAsValue( 155 scoped_ptr<base::DictionaryValue> GetInfoAsValue(
156 const std::string& name, 156 const std::string& name,
157 const std::string& type, 157 const std::string& type,
158 bool include_nested_pools) const override; 158 bool include_nested_pools) const override;
159 base::TimeDelta ConnectionTimeout() const override; 159 base::TimeDelta ConnectionTimeout() const override;
160 160
161 // HigherLayeredPool implementation. 161 // HigherLayeredPool implementation.
162 bool IsStalled() const override; 162 bool IsStalled() const override;
163 163
164 private: 164 private:
165 class ConnectJobDelegate : public ConnectJob::Delegate { 165 class ConnectJobDelegate : public ConnectJob::Delegate {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 bool flushing_; 233 bool flushing_;
234 234
235 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_; 235 base::WeakPtrFactory<WebSocketTransportClientSocketPool> weak_factory_;
236 236
237 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool); 237 DISALLOW_COPY_AND_ASSIGN(WebSocketTransportClientSocketPool);
238 }; 238 };
239 239
240 } // namespace net 240 } // namespace net
241 241
242 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 242 #endif // NET_SOCKET_WEBSOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698