| 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_manager.h" | 5 #include "chrome/browser/debugger/devtools_manager.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/browsing_instance.h" | 12 #include "chrome/browser/browsing_instance.h" |
| 13 #include "chrome/browser/child_process_security_policy.h" | 13 #include "chrome/browser/child_process_security_policy.h" |
| 14 #include "chrome/browser/debugger/devtools_window.h" | 14 #include "chrome/browser/debugger/devtools_window.h" |
| 15 #include "chrome/browser/debugger/devtools_client_host.h" | 15 #include "chrome/browser/debugger/devtools_client_host.h" |
| 16 #include "chrome/browser/pref_service.h" | 16 #include "chrome/browser/prefs/pref_service.h" |
| 17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
| 18 #include "chrome/browser/renderer_host/render_view_host.h" | 18 #include "chrome/browser/renderer_host/render_view_host.h" |
| 19 #include "chrome/browser/renderer_host/site_instance.h" | 19 #include "chrome/browser/renderer_host/site_instance.h" |
| 20 #include "chrome/browser/tab_contents/tab_contents.h" | 20 #include "chrome/browser/tab_contents/tab_contents.h" |
| 21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
| 23 | 23 |
| 24 // static | 24 // static |
| 25 DevToolsManager* DevToolsManager::GetInstance() { | 25 DevToolsManager* DevToolsManager::GetInstance() { |
| 26 // http://crbug.com/47806 this method may be called when BrowserProcess | 26 // http://crbug.com/47806 this method may be called when BrowserProcess |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 DevToolsClientHost* client_host) { | 395 DevToolsClientHost* client_host) { |
| 396 DCHECK(inspected_rvh_to_client_host_.find(inspected_rvh)->second == | 396 DCHECK(inspected_rvh_to_client_host_.find(inspected_rvh)->second == |
| 397 client_host); | 397 client_host); |
| 398 DCHECK(client_host_to_inspected_rvh_.find(client_host)->second == | 398 DCHECK(client_host_to_inspected_rvh_.find(client_host)->second == |
| 399 inspected_rvh); | 399 inspected_rvh); |
| 400 | 400 |
| 401 inspected_rvh_to_client_host_.erase(inspected_rvh); | 401 inspected_rvh_to_client_host_.erase(inspected_rvh); |
| 402 client_host_to_inspected_rvh_.erase(client_host); | 402 client_host_to_inspected_rvh_.erase(client_host); |
| 403 runtime_properties_map_.erase(inspected_rvh); | 403 runtime_properties_map_.erase(inspected_rvh); |
| 404 } | 404 } |
| OLD | NEW |