| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |