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

Unified Diff: net/server/http_server.h

Issue 19637005: Allow HttpServer response to include custom headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: net/server/http_server.h
diff --git a/net/server/http_server.h b/net/server/http_server.h
index b5ba0378d219c762c20440a7b5b96cd57adaa0c5..f29f0fa4af003aa5cdb2886d4a69f2b56fe95ea8 100644
--- a/net/server/http_server.h
+++ b/net/server/http_server.h
@@ -10,13 +10,13 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
-#include "net/http/http_status_code.h"
#include "net/socket/stream_listen_socket.h"
namespace net {
class HttpConnection;
class HttpServerRequestInfo;
+class HttpServerResponseInfo;
class IPEndPoint;
class WebSocket;
@@ -46,10 +46,7 @@ class HttpServer : public StreamListenSocket::Delegate,
void AcceptWebSocket(int connection_id,
const HttpServerRequestInfo& request);
void SendOverWebSocket(int connection_id, const std::string& data);
- void Send(int connection_id,
- HttpStatusCode status_code,
- const std::string& data,
- const std::string& mime_type);
+ void Send(int connection_id, const HttpServerResponseInfo& response);
void Send200(int connection_id,
const std::string& data,
const std::string& mime_type);

Powered by Google App Engine
This is Rietveld 408576698