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

Unified Diff: net/test/embedded_test_server/http_connection.h

Issue 15069003: Rename the embedded test server to EmbeddedTestServer in net::test_server namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 7 years, 7 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/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 2561a3f029ab9828737321ab750cb331ba9ac568..da9353404c6c840498ba9713707c07b8f2f2bdae 100644
--- a/net/test/embedded_test_server/http_connection.h
+++ b/net/test/embedded_test_server/http_connection.h
@@ -12,10 +12,9 @@
#include "net/test/embedded_test_server/http_request.h"
namespace net {
+
class StreamListenSocket;
-}
-namespace google_apis {
namespace test_server {
class HttpConnection;
@@ -31,7 +30,7 @@ typedef base::Callback<void(HttpConnection* connection,
// If a valid request is parsed, then |callback_| is invoked.
class HttpConnection {
public:
- HttpConnection(net::StreamListenSocket* socket,
+ HttpConnection(StreamListenSocket* socket,
const HandleRequestCallback& callback);
~HttpConnection();
@@ -39,14 +38,14 @@ class HttpConnection {
void SendResponse(scoped_ptr<HttpResponse> response) const;
private:
- friend class HttpServer;
+ friend class EmbeddedTestServer;
// Accepts raw chunk of data from the client. Internally, passes it to the
// HttpRequestParser class. If a request is parsed, then |callback_| is
// called.
void ReceiveData(const base::StringPiece& data);
- scoped_refptr<net::StreamListenSocket> socket_;
+ scoped_refptr<StreamListenSocket> socket_;
const HandleRequestCallback callback_;
HttpRequestParser request_parser_;
@@ -54,6 +53,6 @@ class HttpConnection {
};
} // namespace test_server
-} // namespace google_apis
+} // namespace net
#endif // NET_TEST_EMBEDDED_TEST_SERVER_HTTP_CONNECTION_H_
« no previous file with comments | « net/test/embedded_test_server/embedded_test_server_unittest.cc ('k') | net/test/embedded_test_server/http_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698