OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/debugger/devtools_manager.h" | 5 #include "content/browser/debugger/devtools_manager.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "content/browser/browser_thread.h" | 10 #include "content/browser/browser_thread.h" |
11 #include "content/browser/browsing_instance.h" | 11 #include "content/browser/browsing_instance.h" |
12 #include "content/browser/child_process_security_policy.h" | 12 #include "content/browser/child_process_security_policy.h" |
13 #include "content/browser/content_browser_client.h" | |
14 #include "content/browser/debugger/devtools_client_host.h" | 13 #include "content/browser/debugger/devtools_client_host.h" |
15 #include "content/browser/debugger/devtools_netlog_observer.h" | 14 #include "content/browser/debugger/devtools_netlog_observer.h" |
16 #include "content/browser/debugger/render_view_devtools_agent_host.h" | 15 #include "content/browser/debugger/render_view_devtools_agent_host.h" |
17 #include "content/browser/renderer_host/render_view_host.h" | 16 #include "content/browser/renderer_host/render_view_host.h" |
18 #include "content/browser/tab_contents/tab_contents.h" | 17 #include "content/browser/tab_contents/tab_contents.h" |
| 18 #include "content/public/browser/content_browser_client.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 | 20 |
21 // static | 21 // static |
22 DevToolsManager* DevToolsManager::GetInstance() { | 22 DevToolsManager* DevToolsManager::GetInstance() { |
23 return content::GetContentClient()->browser()->GetDevToolsManager(); | 23 return content::GetContentClient()->browser()->GetDevToolsManager(); |
24 } | 24 } |
25 | 25 |
26 DevToolsManager::DevToolsManager() | 26 DevToolsManager::DevToolsManager() |
27 : last_orphan_cookie_(0) { | 27 : last_orphan_cookie_(0) { |
28 } | 28 } |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 for (AgentToClientHostMap::iterator it = | 275 for (AgentToClientHostMap::iterator it = |
276 agent_to_client_host_.begin(); | 276 agent_to_client_host_.begin(); |
277 it != agent_to_client_host_.end(); ++it) { | 277 it != agent_to_client_host_.end(); ++it) { |
278 agents.push_back(it->first); | 278 agents.push_back(it->first); |
279 } | 279 } |
280 for (std::vector<DevToolsAgentHost*>::iterator it = agents.begin(); | 280 for (std::vector<DevToolsAgentHost*>::iterator it = agents.begin(); |
281 it != agents.end(); ++it) { | 281 it != agents.end(); ++it) { |
282 UnregisterDevToolsClientHostFor(*it); | 282 UnregisterDevToolsClientHostFor(*it); |
283 } | 283 } |
284 } | 284 } |
OLD | NEW |