| 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_client_host.h" | 14 #include "chrome/browser/debugger/devtools_client_host.h" |
| 15 #include "chrome/browser/debugger/devtools_netlog_observer.h" | 15 #include "chrome/browser/debugger/devtools_netlog_observer.h" |
| 16 #include "chrome/browser/debugger/devtools_window.h" | 16 #include "chrome/browser/debugger/devtools_window.h" |
| 17 #include "chrome/browser/io_thread.h" | 17 #include "chrome/browser/io_thread.h" |
| 18 #include "chrome/browser/prefs/pref_service.h" | 18 #include "chrome/browser/prefs/pref_service.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/browser/renderer_host/render_view_host.h" | 20 #include "chrome/browser/renderer_host/render_view_host.h" |
| 21 #include "chrome/browser/renderer_host/site_instance.h" | 21 #include "chrome/browser/renderer_host/site_instance.h" |
| 22 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 22 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 23 #include "chrome/common/devtools_messages.h" |
| 23 #include "chrome/common/notification_service.h" | 24 #include "chrome/common/notification_service.h" |
| 24 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
| 25 #include "googleurl/src/gurl.h" | 26 #include "googleurl/src/gurl.h" |
| 26 | 27 |
| 27 // static | 28 // static |
| 28 DevToolsManager* DevToolsManager::GetInstance() { | 29 DevToolsManager* DevToolsManager::GetInstance() { |
| 29 // http://crbug.com/47806 this method may be called when BrowserProcess | 30 // http://crbug.com/47806 this method may be called when BrowserProcess |
| 30 // has already been destroyed. | 31 // has already been destroyed. |
| 31 if (!g_browser_process) | 32 if (!g_browser_process) |
| 32 return NULL; | 33 return NULL; |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 for (InspectedRvhToClientHostMap::iterator it = | 441 for (InspectedRvhToClientHostMap::iterator it = |
| 441 inspected_rvh_to_client_host_.begin(); | 442 inspected_rvh_to_client_host_.begin(); |
| 442 it != inspected_rvh_to_client_host_.end(); ++it) { | 443 it != inspected_rvh_to_client_host_.end(); ++it) { |
| 443 rhvs.push_back(it->first); | 444 rhvs.push_back(it->first); |
| 444 } | 445 } |
| 445 for (std::vector<RenderViewHost*>::iterator it = rhvs.begin(); | 446 for (std::vector<RenderViewHost*>::iterator it = rhvs.begin(); |
| 446 it != rhvs.end(); ++it) { | 447 it != rhvs.end(); ++it) { |
| 447 UnregisterDevToolsClientHostFor(*it); | 448 UnregisterDevToolsClientHostFor(*it); |
| 448 } | 449 } |
| 449 } | 450 } |
| OLD | NEW |