summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/inspectable_tab_proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/debugger/inspectable_tab_proxy.h')
-rw-r--r--chrome/browser/debugger/inspectable_tab_proxy.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/browser/debugger/inspectable_tab_proxy.h b/chrome/browser/debugger/inspectable_tab_proxy.h
index 8d02727..af08232 100644
--- a/chrome/browser/debugger/inspectable_tab_proxy.h
+++ b/chrome/browser/debugger/inspectable_tab_proxy.h
@@ -26,8 +26,8 @@ class InspectableTabProxy {
typedef base::hash_map<int32, NavigationController*> ControllersMap;
typedef base::hash_map<int32, DevToolsClientHostImpl*> IdToClientHostMap;
- InspectableTabProxy();
- virtual ~InspectableTabProxy();
+ InspectableTabProxy() {}
+ virtual ~InspectableTabProxy() {}
// Returns a map of NavigationControllerKeys to NavigationControllers
// for all Browser instances. Clients should not keep the result around
@@ -64,9 +64,13 @@ class DevToolsClientHostImpl : public DevToolsClientHost {
DevToolsClientHostImpl(
int32 id,
DebuggerRemoteService* service,
- InspectableTabProxy::IdToClientHostMap* map);
- ~DevToolsClientHostImpl();
-
+ InspectableTabProxy::IdToClientHostMap* map)
+ : id_(id),
+ service_(service),
+ map_(map) {}
+ ~DevToolsClientHostImpl() {
+ map_->erase(this->id_);
+ }
DebuggerRemoteService* debugger_remote_service() {
return service_;
}