diff options
author | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 14:49:42 +0000 |
---|---|---|
committer | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 14:49:42 +0000 |
commit | e44cdf31522aff26c27759b1a06ae6eef8b97257 (patch) | |
tree | cae278fccda2bec154ff08c9fd5d66eae943de90 /chrome/browser/debugger/inspectable_tab_proxy.cc | |
parent | 3e44697f8e0749d2acd1d3ee1431a27df2c94e74 (diff) | |
download | chromium_src-e44cdf31522aff26c27759b1a06ae6eef8b97257.zip chromium_src-e44cdf31522aff26c27759b1a06ae6eef8b97257.tar.gz chromium_src-e44cdf31522aff26c27759b1a06ae6eef8b97257.tar.bz2 |
Fix remote debugger detachment sequence according to the latest DevTools changes
Review URL: http://codereview.chromium.org/113765
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/inspectable_tab_proxy.cc')
-rw-r--r-- | chrome/browser/debugger/inspectable_tab_proxy.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/chrome/browser/debugger/inspectable_tab_proxy.cc b/chrome/browser/debugger/inspectable_tab_proxy.cc index 097b817..0479716 100644 --- a/chrome/browser/debugger/inspectable_tab_proxy.cc +++ b/chrome/browser/debugger/inspectable_tab_proxy.cc @@ -16,9 +16,14 @@ #include "chrome/browser/tabs/tab_strip_model.h" #include "chrome/common/devtools_messages.h" +// The debugged tab has closed. void DevToolsClientHostImpl::InspectedTabClosing() { - static const std::string kEmptyUrl = ""; TabClosed(); + delete this; +} + +// The remote debugger has detached. +void DevToolsClientHostImpl::Close() { NotifyCloseListener(); delete this; } @@ -86,6 +91,16 @@ const InspectableTabProxy::ControllersMap& return controllers_map_; } +DevToolsClientHostImpl* InspectableTabProxy::ClientHostForTabId( + int32 id) { + InspectableTabProxy::IdToClientHostMap::const_iterator it = + id_to_client_host_map_.find(id); + if (it == id_to_client_host_map_.end()) { + return NULL; + } + return it->second; +} + DevToolsClientHost* InspectableTabProxy::NewClientHost( int32 id, DebuggerRemoteService* service) { |