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

Side by Side Diff: mojo/spy/websocket_server.h

Issue 296053012: Replace StreamListenSocket with StreamSocket in HttpServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SPY_WEBSOCKET_SERVER_H_ 5 #ifndef MOJO_SPY_WEBSOCKET_SERVER_H_
6 #define MOJO_SPY_WEBSOCKET_SERVER_H_ 6 #define MOJO_SPY_WEBSOCKET_SERVER_H_
7 7
8 #include "net/server/http_server.h" 8 #include "net/server/http_server.h"
9 9
10 namespace spy { 10 namespace spy {
(...skipping 17 matching lines...) Expand all
28 int connection_id, 28 int connection_id,
29 const net::HttpServerRequestInfo& info) OVERRIDE; 29 const net::HttpServerRequestInfo& info) OVERRIDE;
30 virtual void OnWebSocketMessage( 30 virtual void OnWebSocketMessage(
31 int connection_id, 31 int connection_id,
32 const std::string& data) OVERRIDE; 32 const std::string& data) OVERRIDE;
33 virtual void OnClose(int connection_id) OVERRIDE; 33 virtual void OnClose(int connection_id) OVERRIDE;
34 34
35 private: 35 private:
36 int port_; 36 int port_;
37 int connection_id_; 37 int connection_id_;
38 scoped_refptr<net::HttpServer> server_; 38 scoped_ptr<net::HttpServer> server_;
39 DISALLOW_COPY_AND_ASSIGN(WebSocketServer); 39 DISALLOW_COPY_AND_ASSIGN(WebSocketServer);
40 }; 40 };
41 41
42 } // namespace spy 42 } // namespace spy
43 43
44 #endif // MOJO_SPY_WEBSOCKET_SERVER_H_ 44 #endif // MOJO_SPY_WEBSOCKET_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698