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

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

Issue 2657005: Get rid of DISALLOW_EVIL_CONSTRUCTORS macro usage in our code base. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: added the macro back Created 10 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
« no previous file with comments | « net/tools/fetch/http_listen_socket.h ('k') | net/tools/fetch/http_session.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) 2009 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_SERVER_H_ 5 #ifndef NET_BASE_TOOLS_HTTP_SERVER_H_
6 #define NET_BASE_TOOLS_HTTP_SERVER_H_ 6 #define NET_BASE_TOOLS_HTTP_SERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "net/tools/fetch/http_session.h" 9 #include "net/tools/fetch/http_session.h"
10 10
11 // Implements a simple, single-threaded HttpServer. 11 // Implements a simple, single-threaded HttpServer.
12 // Right now, this class implements no functionality above and beyond 12 // Right now, this class implements no functionality above and beyond
13 // the HttpSession. 13 // the HttpSession.
14 class HttpServer { 14 class HttpServer {
15 public: 15 public:
16 HttpServer(std::string ip, int port); 16 HttpServer(std::string ip, int port);
17 ~HttpServer(); 17 ~HttpServer();
18 18
19 private: 19 private:
20 scoped_ptr<HttpSession> session_; 20 scoped_ptr<HttpSession> session_;
21 DISALLOW_EVIL_CONSTRUCTORS(HttpServer); 21 DISALLOW_COPY_AND_ASSIGN(HttpServer);
22 }; 22 };
23 23
24 #endif // NET_BASE_TOOLS_HTTP_SERVER_H_ 24 #endif // NET_BASE_TOOLS_HTTP_SERVER_H_
25 25
OLDNEW
« no previous file with comments | « net/tools/fetch/http_listen_socket.h ('k') | net/tools/fetch/http_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698