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

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

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 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
« no previous file with comments | « net/tools/fetch/http_listen_socket.h ('k') | net/udp/udp_socket_libevent.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/http/http_request_info.h" 10 #include "net/http/http_request_info.h"
11 #include "net/tools/fetch/http_listen_socket.h" 11 #include "net/tools/fetch/http_listen_socket.h"
12 12
13 // An HttpSession encapsulates a server-side HTTP listen socket. 13 // An HttpSession encapsulates a server-side HTTP listen socket.
14 class HttpSession : HttpListenSocket::Delegate { 14 class HttpSession : HttpListenSocket::Delegate {
15 public: 15 public:
16 HttpSession(const std::string& ip, int port); 16 HttpSession(const std::string& ip, int port);
17 virtual ~HttpSession(); 17 virtual ~HttpSession();
18 18
19 virtual void OnRequest(HttpListenSocket* connection, 19 virtual void OnRequest(HttpListenSocket* connection,
20 HttpServerRequestInfo* info); 20 HttpServerRequestInfo* info) OVERRIDE;
21 21
22 private: 22 private:
23 scoped_refptr<HttpListenSocket> socket_; 23 scoped_refptr<HttpListenSocket> socket_;
24 DISALLOW_COPY_AND_ASSIGN(HttpSession); 24 DISALLOW_COPY_AND_ASSIGN(HttpSession);
25 }; 25 };
26 26
27 #endif // NET_BASE_TOOLS_HTTP_SESSION_H_ 27 #endif // NET_BASE_TOOLS_HTTP_SESSION_H_
28 28
OLDNEW
« no previous file with comments | « net/tools/fetch/http_listen_socket.h ('k') | net/udp/udp_socket_libevent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698