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

Side by Side Diff: net/socket_stream/socket_stream.h

Issue 169193002: Convert scoped_ptr_malloc -> scoped_ptr, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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
« no previous file with comments | « net/proxy/dhcp_proxy_script_fetcher_win.cc ('k') | sandbox/win/src/Wow64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_STREAM_SOCKET_STREAM_H_ 5 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_H_
6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_ 6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 ResponseHeaders(); 216 ResponseHeaders();
217 217
218 void SetDataOffset(size_t offset) { data_ = headers_.get() + offset; } 218 void SetDataOffset(size_t offset) { data_ = headers_.get() + offset; }
219 char* headers() const { return headers_.get(); } 219 char* headers() const { return headers_.get(); }
220 void Reset() { headers_.reset(); } 220 void Reset() { headers_.reset(); }
221 void Realloc(size_t new_size); 221 void Realloc(size_t new_size);
222 222
223 private: 223 private:
224 virtual ~ResponseHeaders(); 224 virtual ~ResponseHeaders();
225 225
226 scoped_ptr_malloc<char> headers_; 226 scoped_ptr<char, base::FreeDeleter> headers_;
227 }; 227 };
228 228
229 enum State { 229 enum State {
230 STATE_NONE, 230 STATE_NONE,
231 STATE_BEFORE_CONNECT, 231 STATE_BEFORE_CONNECT,
232 STATE_BEFORE_CONNECT_COMPLETE, 232 STATE_BEFORE_CONNECT_COMPLETE,
233 STATE_RESOLVE_PROXY, 233 STATE_RESOLVE_PROXY,
234 STATE_RESOLVE_PROXY_COMPLETE, 234 STATE_RESOLVE_PROXY_COMPLETE,
235 STATE_RESOLVE_HOST, 235 STATE_RESOLVE_HOST,
236 STATE_RESOLVE_HOST_COMPLETE, 236 STATE_RESOLVE_HOST_COMPLETE,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 bool server_closed_; 388 bool server_closed_;
389 389
390 scoped_ptr<SocketStreamMetrics> metrics_; 390 scoped_ptr<SocketStreamMetrics> metrics_;
391 391
392 DISALLOW_COPY_AND_ASSIGN(SocketStream); 392 DISALLOW_COPY_AND_ASSIGN(SocketStream);
393 }; 393 };
394 394
395 } // namespace net 395 } // namespace net
396 396
397 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_H_ 397 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_H_
OLDNEW
« no previous file with comments | « net/proxy/dhcp_proxy_script_fetcher_win.cc ('k') | sandbox/win/src/Wow64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698