| 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..ee304ebb99fff22ddefe640e741bf696659cd114 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,9 @@ 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 SendResponseBytes(const std::string& response_string,
|
| + const SendCompleteCallback& callback);
|
|
|
| // Accepts raw chunk of data from the client. Internally, passes it to the
|
| // HttpRequestParser class. If a request is parsed, then |callback_| is
|
|
|