| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_DEBUGGER_DEVTOOLS_PROTOCOL_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_DEVTOOLS_PROTOCOL_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_PROTOCOL_HANDLER_H_ | 6 #define CHROME_BROWSER_DEBUGGER_DEVTOOLS_PROTOCOL_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // ListenSocket::ListenSocketDelegate interface | 63 // ListenSocket::ListenSocketDelegate interface |
| 64 virtual void DidAccept(ListenSocket *server, ListenSocket *connection); | 64 virtual void DidAccept(ListenSocket *server, ListenSocket *connection); |
| 65 virtual void DidRead(ListenSocket *connection, const std::string& data); | 65 virtual void DidRead(ListenSocket *connection, const std::string& data); |
| 66 virtual void DidClose(ListenSocket *sock); | 66 virtual void DidClose(ListenSocket *sock); |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 void Init(); | 69 void Init(); |
| 70 void Teardown(); | 70 void Teardown(); |
| 71 int port_; | 71 int port_; |
| 72 MessageLoop* ui_loop_; | |
| 73 MessageLoop* io_loop_; | |
| 74 ToolToListenerMap tool_to_listener_map_; | 72 ToolToListenerMap tool_to_listener_map_; |
| 75 scoped_refptr<ListenSocket> connection_; | 73 scoped_refptr<ListenSocket> connection_; |
| 76 scoped_refptr<DevToolsRemoteListenSocket> server_; | 74 scoped_refptr<DevToolsRemoteListenSocket> server_; |
| 77 scoped_ptr<InspectableTabProxy> inspectable_tab_proxy_; | 75 scoped_ptr<InspectableTabProxy> inspectable_tab_proxy_; |
| 78 DISALLOW_COPY_AND_ASSIGN(DevToolsProtocolHandler); | 76 DISALLOW_COPY_AND_ASSIGN(DevToolsProtocolHandler); |
| 79 }; | 77 }; |
| 80 | 78 |
| 81 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_PROTOCOL_HANDLER_H_ | 79 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_PROTOCOL_HANDLER_H_ |
| OLD | NEW |