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

Side by Side Diff: net/server/http_connection.h

Issue 8525020: Cleanup: Remove unneeded forward declararations in net. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/proxy/proxy_service.h ('k') | net/socket/client_socket_factory.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) 2011 The Chromium Authors. All rights reserved. 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 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_SERVER_HTTP_CONNECTION_H_ 5 #ifndef NET_SERVER_HTTP_CONNECTION_H_
6 #define NET_SERVER_HTTP_CONNECTION_H_ 6 #define NET_SERVER_HTTP_CONNECTION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class HttpServer; 17 class HttpServer;
18 class HttpServerRequestInfo;
19 class ListenSocket; 18 class ListenSocket;
20 class WebSocket; 19 class WebSocket;
21 20
22 class HttpConnection { 21 class HttpConnection {
23 public: 22 public:
24 void Send(const std::string& data); 23 void Send(const std::string& data);
25 void Send(const char* bytes, int len); 24 void Send(const char* bytes, int len);
26 void Send200(const std::string& data, const std::string& content_type); 25 void Send200(const std::string& data, const std::string& content_type);
27 void Send404(); 26 void Send404();
28 void Send500(const std::string& message); 27 void Send500(const std::string& message);
(...skipping 15 matching lines...) Expand all
44 HttpServer* server_; 43 HttpServer* server_;
45 scoped_refptr<ListenSocket> socket_; 44 scoped_refptr<ListenSocket> socket_;
46 scoped_ptr<WebSocket> web_socket_; 45 scoped_ptr<WebSocket> web_socket_;
47 std::string recv_data_; 46 std::string recv_data_;
48 int id_; 47 int id_;
49 DISALLOW_COPY_AND_ASSIGN(HttpConnection); 48 DISALLOW_COPY_AND_ASSIGN(HttpConnection);
50 }; 49 };
51 50
52 } // namespace net 51 } // namespace net
53 52
54 #endif // NET_SERVER_HTTP_CONNECTION_H_ 53 #endif // NET_SERVER_HTTP_CONNECTION_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_service.h ('k') | net/socket/client_socket_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698