| 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 #include "chrome/browser/debugger/devtools_protocol_handler.h" | 5 #include "chrome/browser/debugger/devtools_protocol_handler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chrome_thread.h" | 8 #include "chrome/browser/browser_thread.h" |
| 9 #include "chrome/browser/debugger/inspectable_tab_proxy.h" | 9 #include "chrome/browser/debugger/inspectable_tab_proxy.h" |
| 10 #include "chrome/browser/debugger/devtools_remote_message.h" | 10 #include "chrome/browser/debugger/devtools_remote_message.h" |
| 11 #include "chrome/browser/debugger/devtools_remote_listen_socket.h" | 11 #include "chrome/browser/debugger/devtools_remote_listen_socket.h" |
| 12 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 | 13 |
| 14 DevToolsProtocolHandler::DevToolsProtocolHandler(int port) | 14 DevToolsProtocolHandler::DevToolsProtocolHandler(int port) |
| 15 : port_(port), | 15 : port_(port), |
| 16 connection_(NULL), | 16 connection_(NULL), |
| 17 server_(NULL) { | 17 server_(NULL) { |
| 18 inspectable_tab_proxy_.reset(new InspectableTabProxy); | 18 inspectable_tab_proxy_.reset(new InspectableTabProxy); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 for (ToolToListenerMap::const_iterator it = tool_to_listener_map_.begin(), | 96 for (ToolToListenerMap::const_iterator it = tool_to_listener_map_.begin(), |
| 97 end = tool_to_listener_map_.end(); | 97 end = tool_to_listener_map_.end(); |
| 98 it != end; | 98 it != end; |
| 99 ++it) { | 99 ++it) { |
| 100 ChromeThread::PostTask( | 100 ChromeThread::PostTask( |
| 101 ChromeThread::UI, FROM_HERE, | 101 ChromeThread::UI, FROM_HERE, |
| 102 NewRunnableMethod( | 102 NewRunnableMethod( |
| 103 it->second.get(), &DevToolsRemoteListener::OnConnectionLost)); | 103 it->second.get(), &DevToolsRemoteListener::OnConnectionLost)); |
| 104 } | 104 } |
| 105 } | 105 } |
| OLD | NEW |