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

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

Issue 497223003: Revert of Replace StreamListenSocket with StreamSocket in HttpServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « extensions/browser/api/socket/tcp_socket.cc ('k') | mojo/spy/websocket_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "mojo/spy/common.h" 10 #include "mojo/spy/common.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void OnMessage(spy_api::MessagePtr message) OVERRIDE; 59 virtual void OnMessage(spy_api::MessagePtr message) OVERRIDE;
60 60
61 // Callbacks from calling spy_api::SpyServer. 61 // Callbacks from calling spy_api::SpyServer.
62 void OnStartSession(spy_api::Result, mojo::String); 62 void OnStartSession(spy_api::Result, mojo::String);
63 63
64 bool Connected() const; 64 bool Connected() const;
65 65
66 private: 66 private:
67 int port_; 67 int port_;
68 int connection_id_; 68 int connection_id_;
69 scoped_ptr<net::HttpServer> web_server_; 69 scoped_refptr<net::HttpServer> web_server_;
70 spy_api::SpyServerPtr spy_server_; 70 spy_api::SpyServerPtr spy_server_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(WebSocketServer); 72 DISALLOW_COPY_AND_ASSIGN(WebSocketServer);
73 }; 73 };
74 74
75 } // namespace mojo 75 } // namespace mojo
76 76
77 #endif // MOJO_SPY_WEBSOCKET_SERVER_H_ 77 #endif // MOJO_SPY_WEBSOCKET_SERVER_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/socket/tcp_socket.cc ('k') | mojo/spy/websocket_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698