Lines Matching defs:inspected_rvh
59 RenderViewHost* inspected_rvh) {
61 inspected_rvh_to_client_host_.find(inspected_rvh);
68 RenderViewHost* inspected_rvh,
70 DCHECK(!GetDevToolsClientHostFor(inspected_rvh));
73 BindClientHost(inspected_rvh, client_host, initial_properties);
75 SendAttachToAgent(inspected_rvh);
88 RenderViewHost* inspected_rvh = GetInspectedRenderViewHost(from);
89 if (!inspected_rvh) {
96 m->set_routing_id(inspected_rvh->routing_id());
97 inspected_rvh->Send(m);
100 void DevToolsManager::ForwardToDevToolsClient(RenderViewHost* inspected_rvh,
102 DevToolsClientHost* client_host = GetDevToolsClientHostFor(inspected_rvh);
124 RenderViewHost* inspected_rvh = GetInspectedRenderViewHost(client_host);
125 DCHECK(inspected_rvh);
126 UnregisterDevToolsClientHostFor(inspected_rvh);
138 void DevToolsManager::OpenDevToolsWindow(RenderViewHost* inspected_rvh) {
140 inspected_rvh,
146 RenderViewHost* inspected_rvh,
148 ToggleDevToolsWindow(inspected_rvh, false, action);
151 void DevToolsManager::RuntimePropertyChanged(RenderViewHost* inspected_rvh,
155 runtime_properties_map_.find(inspected_rvh);
158 inspected_rvh,
165 void DevToolsManager::InspectElement(RenderViewHost* inspected_rvh,
169 m->set_routing_id(inspected_rvh->routing_id());
170 inspected_rvh->Send(m);
173 OpenDevToolsWindow(inspected_rvh);
177 RenderViewHost* inspected_rvh = GetInspectedRenderViewHost(host);
178 if (!inspected_rvh) {
192 Source<Profile>(inspected_rvh->site_instance()->GetProcess()->profile()),
193 Details<RenderViewHost>(inspected_rvh));
195 UnbindClientHost(inspected_rvh, host);
215 RenderViewHost* inspected_rvh) {
216 DevToolsClientHost* host = GetDevToolsClientHostFor(inspected_rvh);
219 UnbindClientHost(inspected_rvh, host);
301 void DevToolsManager::SendAttachToAgent(RenderViewHost* inspected_rvh) {
302 if (inspected_rvh) {
304 inspected_rvh->process()->id());
308 runtime_properties_map_.find(inspected_rvh);
314 m->set_routing_id(inspected_rvh->routing_id());
315 inspected_rvh->Send(m);
319 void DevToolsManager::SendDetachToAgent(RenderViewHost* inspected_rvh) {
320 if (inspected_rvh) {
322 m->set_routing_id(inspected_rvh->routing_id());
323 inspected_rvh->Send(m);
354 RenderViewHost* inspected_rvh = GetInspectedRenderViewHost(client_host);
355 DCHECK(inspected_rvh);
356 inspected_rvh->process()->profile()->GetPrefs()->SetBoolean(
365 RenderViewHost* inspected_rvh,
369 DevToolsClientHost* host = GetDevToolsClientHostFor(inspected_rvh);
373 UnregisterDevToolsClientHostFor(inspected_rvh);
378 bool docked = inspected_rvh->process()->profile()->GetPrefs()->
381 inspected_rvh->site_instance()->browsing_instance()->profile(),
382 inspected_rvh,
384 RegisterDevToolsClientHostFor(inspected_rvh, host);
395 UnregisterDevToolsClientHostFor(inspected_rvh);
400 RenderViewHost* inspected_rvh,
403 DCHECK(inspected_rvh_to_client_host_.find(inspected_rvh) ==
415 inspected_rvh_to_client_host_[inspected_rvh] = client_host;
416 client_host_to_inspected_rvh_[client_host] = inspected_rvh;
417 runtime_properties_map_[inspected_rvh] = runtime_properties;
420 void DevToolsManager::UnbindClientHost(RenderViewHost* inspected_rvh,
422 DCHECK(inspected_rvh_to_client_host_.find(inspected_rvh)->second ==
425 inspected_rvh);
427 inspected_rvh_to_client_host_.erase(inspected_rvh);
429 runtime_properties_map_.erase(inspected_rvh);
437 SendDetachToAgent(inspected_rvh);
438 if (inspected_rvh_for_reopen_ == inspected_rvh)
441 int process_id = inspected_rvh->process()->id();