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

Unified Diff: net/server/web_socket.h

Issue 1357693003: Returning scoped_ptr<> instead of raw pointer in WebSocket::CreateWebSocket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « net/server/http_server.cc ('k') | net/server/web_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/web_socket.h
diff --git a/net/server/web_socket.h b/net/server/web_socket.h
index 5a13fdc54bb6d0c54d6a0387cdcaadfeb5f69d2a..d9509d88dbbf94a8bc44c0429b58cb144496966b 100644
--- a/net/server/web_socket.h
+++ b/net/server/web_socket.h
@@ -27,9 +27,10 @@ class WebSocket final {
FRAME_ERROR
};
- static WebSocket* CreateWebSocket(HttpServer* server,
- HttpConnection* connection,
- const HttpServerRequestInfo& request);
+ static scoped_ptr<WebSocket> CreateWebSocket(
+ HttpServer* server,
+ HttpConnection* connection,
+ const HttpServerRequestInfo& request);
void Accept(const HttpServerRequestInfo& request);
ParseResult Read(std::string* message);
« no previous file with comments | « net/server/http_server.cc ('k') | net/server/web_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698