Chromium Code Reviews| Index: net/test/embedded_test_server/http_connection.h |
| diff --git a/net/test/embedded_test_server/http_connection.h b/net/test/embedded_test_server/http_connection.h |
| index 0668f0d1211f0c91fbb404685d8570745e0373fe..3e0a7e130bf08acfc965167553e30621d5232f83 100644 |
| --- a/net/test/embedded_test_server/http_connection.h |
| +++ b/net/test/embedded_test_server/http_connection.h |
| @@ -13,6 +13,7 @@ |
| #include "net/base/completion_callback.h" |
| #include "net/base/io_buffer.h" |
| #include "net/test/embedded_test_server/http_request.h" |
| +#include "net/test/embedded_test_server/http_response.h" |
| namespace net { |
| @@ -37,9 +38,8 @@ class HttpConnection { |
| const HandleRequestCallback& callback); |
| ~HttpConnection(); |
| - // Sends the HTTP response to the client. |
| - void SendResponse(scoped_ptr<HttpResponse> response, |
| - const base::Closure& callback); |
| + // Sends the |response_string| to the client and calls |callback| once done. |
| + void SendResponse(std::string response_string, SendCompleteCallback callback); |
|
mmenke
2015/10/19 18:07:40
const std::string&
mmenke
2015/10/19 18:07:40
Maybe SendResponse -> SendBytes or SendResponseByt
svaldez
2015/10/19 21:56:15
Done.
svaldez
2015/10/19 21:56:15
Done.
|
| // Accepts raw chunk of data from the client. Internally, passes it to the |
| // HttpRequestParser class. If a request is parsed, then |callback_| is |