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

Side by Side Diff: net/tools/fetch/http_session.h

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_BASE_TOOLS_HTTP_SESSION_H_ 5 #ifndef NET_BASE_TOOLS_HTTP_SESSION_H_
6 #define NET_BASE_TOOLS_HTTP_SESSION_H_ 6 #define NET_BASE_TOOLS_HTTP_SESSION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "net/http/http_request_info.h" 9 #include "net/http/http_request_info.h"
10 #include "net/tools/fetch/http_listen_socket.h" 10 #include "net/tools/fetch/http_listen_socket.h"
11 11
12 // An HttpSession encapsulates a server-side HTTP listen socket. 12 // An HttpSession encapsulates a server-side HTTP listen socket.
13 class HttpSession : HttpListenSocket::Delegate { 13 class HttpSession : HttpListenSocket::Delegate {
14 public: 14 public:
15 HttpSession(const std::string& ip, int port); 15 HttpSession(const std::string& ip, int port);
16 virtual ~HttpSession(); 16 virtual ~HttpSession();
17 17
18 virtual void OnRequest(HttpListenSocket* connection, 18 virtual void OnRequest(HttpListenSocket* connection,
19 HttpServerRequestInfo* info); 19 HttpServerRequestInfo* info);
20 20
21 private: 21 private:
22 scoped_ptr<HttpListenSocket> socket_; 22 scoped_refptr<HttpListenSocket> socket_;
23 DISALLOW_EVIL_CONSTRUCTORS(HttpSession); 23 DISALLOW_EVIL_CONSTRUCTORS(HttpSession);
24 }; 24 };
25 25
26 #endif // NET_BASE_TOOLS_HTTP_SESSION_H_ 26 #endif // NET_BASE_TOOLS_HTTP_SESSION_H_
27 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698