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

Unified Diff: chrome_frame/test/test_server.h

Issue 2868036: Brushed up listen socket: (Closed)
Patch Set: Lint. Created 10 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
« no previous file with comments | « chrome/browser/debugger/devtools_remote_listen_socket_unittest.cc ('k') | chrome_frame/test/test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/test_server.h
diff --git a/chrome_frame/test/test_server.h b/chrome_frame/test/test_server.h
index b827cebbc1bb909ae2213f8ee5337dcfab4c8f94..c3fab96b56ee617086c13d9a8adf4b24d21709a7 100644
--- a/chrome_frame/test/test_server.h
+++ b/chrome_frame/test/test_server.h
@@ -288,7 +288,7 @@ class SimpleWebServer : public ListenSocket::ListenSocketDelegate {
// ListenSocketDelegate overrides.
virtual void DidAccept(ListenSocket* server, ListenSocket* connection);
- virtual void DidRead(ListenSocket* connection, const std::string& data);
+ virtual void DidRead(ListenSocket* connection, const char* data, int len);
virtual void DidClose(ListenSocket* sock);
const ConnectionList& connections() const {
@@ -381,7 +381,7 @@ class HTTPTestServer : public ListenSocket::ListenSocketDelegate {
virtual void Post(ConfigurableConnection* connection,
const std::string& path, const Request& r) = 0;
-private:
+ private:
typedef std::list<scoped_refptr<ConfigurableConnection> > ConnectionList;
ConnectionList::iterator FindConnection(const ListenSocket* socket);
scoped_refptr<ConfigurableConnection> ConnectionFromSocket(
@@ -389,7 +389,7 @@ private:
// ListenSocketDelegate overrides.
virtual void DidAccept(ListenSocket* server, ListenSocket* socket);
- virtual void DidRead(ListenSocket* socket, const std::string& data);
+ virtual void DidRead(ListenSocket* socket, const char* data, int len);
virtual void DidClose(ListenSocket* socket);
scoped_refptr<ListenSocket> server_;
« no previous file with comments | « chrome/browser/debugger/devtools_remote_listen_socket_unittest.cc ('k') | chrome_frame/test/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698