| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/inspectable_tab_proxy.h" | 5 #include "chrome/browser/debugger/inspectable_tab_proxy.h" |
| 6 | 6 |
| 7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
| 10 #include "chrome/browser/debugger/debugger_remote_service.h" | 10 #include "chrome/browser/debugger/debugger_remote_service.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 IPC_MESSAGE_HANDLER(DevToolsClientMsg_DebuggerOutput, OnDebuggerOutput); | 46 IPC_MESSAGE_HANDLER(DevToolsClientMsg_DebuggerOutput, OnDebuggerOutput); |
| 47 IPC_MESSAGE_UNHANDLED_ERROR() | 47 IPC_MESSAGE_UNHANDLED_ERROR() |
| 48 IPC_END_MESSAGE_MAP() | 48 IPC_END_MESSAGE_MAP() |
| 49 } | 49 } |
| 50 | 50 |
| 51 | 51 |
| 52 void DevToolsClientHostImpl::OnDebuggerOutput(const std::string& data) { | 52 void DevToolsClientHostImpl::OnDebuggerOutput(const std::string& data) { |
| 53 service_->DebuggerOutput(id_, data); | 53 service_->DebuggerOutput(id_, data); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void DevToolsClientHostImpl::FrameNavigate(const std::string& url) { | 56 void DevToolsClientHostImpl::FrameNavigating(const std::string& url) { |
| 57 service_->FrameNavigate(id_, url); | 57 service_->FrameNavigate(id_, url); |
| 58 } | 58 } |
| 59 | 59 |
| 60 void DevToolsClientHostImpl::TabClosed() { | 60 void DevToolsClientHostImpl::TabClosed() { |
| 61 service_->TabClosed(id_); | 61 service_->TabClosed(id_); |
| 62 } | 62 } |
| 63 | 63 |
| 64 InspectableTabProxy::InspectableTabProxy() {} | 64 InspectableTabProxy::InspectableTabProxy() {} |
| 65 | 65 |
| 66 InspectableTabProxy::~InspectableTabProxy() {} | 66 InspectableTabProxy::~InspectableTabProxy() {} |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 return client_host; | 99 return client_host; |
| 100 } | 100 } |
| 101 | 101 |
| 102 void InspectableTabProxy::OnRemoteDebuggerDetached() { | 102 void InspectableTabProxy::OnRemoteDebuggerDetached() { |
| 103 while (id_to_client_host_map_.size() > 0) { | 103 while (id_to_client_host_map_.size() > 0) { |
| 104 IdToClientHostMap::iterator it = id_to_client_host_map_.begin(); | 104 IdToClientHostMap::iterator it = id_to_client_host_map_.begin(); |
| 105 it->second->debugger_remote_service()->DetachFromTab( | 105 it->second->debugger_remote_service()->DetachFromTab( |
| 106 base::IntToString(it->first), NULL); | 106 base::IntToString(it->first), NULL); |
| 107 } | 107 } |
| 108 } | 108 } |
| OLD | NEW |