| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/browser/debugger/devtools_remote.h" | 14 #include "content/browser/debugger/devtools_remote.h" |
| 15 #include "net/base/listen_socket.h" | 15 #include "net/base/listen_socket.h" |
| 16 | 16 |
| 17 class InspectableTabProxy; | 17 class InspectableTabProxy; |
| 18 class DevToolsRemoteListenSocket; | 18 class DevToolsRemoteListenSocket; |
| 19 class DevToolsRemoteMessage; | 19 class DevToolsRemoteMessage; |
| 20 | 20 |
| 21 // Dispatches DevToolsRemoteMessages to their appropriate handlers (Tools) | 21 // Dispatches DevToolsRemoteMessages to their appropriate handlers (Tools) |
| 22 // based on the "Tool" message header value. | 22 // based on the "Tool" message header value. |
| 23 class DevToolsProtocolHandler | 23 class DevToolsProtocolHandler |
| 24 : public DevToolsRemoteListener, | 24 : public DevToolsRemoteListener, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void Teardown(); | 67 void Teardown(); |
| 68 int port_; | 68 int port_; |
| 69 ToolToListenerMap tool_to_listener_map_; | 69 ToolToListenerMap tool_to_listener_map_; |
| 70 scoped_refptr<net::ListenSocket> connection_; | 70 scoped_refptr<net::ListenSocket> connection_; |
| 71 scoped_refptr<DevToolsRemoteListenSocket> server_; | 71 scoped_refptr<DevToolsRemoteListenSocket> server_; |
| 72 scoped_ptr<InspectableTabProxy> inspectable_tab_proxy_; | 72 scoped_ptr<InspectableTabProxy> inspectable_tab_proxy_; |
| 73 DISALLOW_COPY_AND_ASSIGN(DevToolsProtocolHandler); | 73 DISALLOW_COPY_AND_ASSIGN(DevToolsProtocolHandler); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_PROTOCOL_HANDLER_H_ | 76 #endif // CHROME_BROWSER_DEBUGGER_DEVTOOLS_PROTOCOL_HANDLER_H_ |
| OLD | NEW |