1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef NET_BASE_TOOLS_HTTP_SERVER_H_ 6 #define NET_BASE_TOOLS_HTTP_SERVER_H_ 7 #pragma once 8 9 #include "base/basictypes.h" 10 #include "base/memory/scoped_ptr.h" 11 #include "net/tools/fetch/http_session.h" 12 13 // Implements a simple, single-threaded HttpServer. 14 // Right now, this class implements no functionality above and beyond 15 // the HttpSession. 16 class HttpServer { 17 public: 18 HttpServer(std::string ip, int port); 19 ~HttpServer(); 20 21 private: 22 scoped_ptr<HttpSession> session_; 23 DISALLOW_COPY_AND_ASSIGN(HttpServer); 24 }; 25 26 #endif // NET_BASE_TOOLS_HTTP_SERVER_H_ 27 28