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" | 13 #include "content/browser/content_browser_client.h" |
14 #include "content/browser/debugger/devtools_client_host.h" | 14 #include "content/browser/debugger/devtools_client_host.h" |
15 #include "content/browser/debugger/devtools_netlog_observer.h" | 15 #include "content/browser/debugger/devtools_netlog_observer.h" |
16 #include "content/browser/debugger/render_view_devtools_agent_host.h" | 16 #include "content/browser/debugger/render_view_devtools_agent_host.h" |
17 #include "content/browser/renderer_host/render_view_host.h" | 17 #include "content/browser/renderer_host/render_view_host.h" |
18 #include "content/browser/tab_contents/tab_contents.h" | 18 #include "content/browser/tab_contents/tab_contents.h" |
19 #include "content/common/content_client.h" | |
20 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
21 | 20 |
22 // static | 21 // static |
23 DevToolsManager* DevToolsManager::GetInstance() { | 22 DevToolsManager* DevToolsManager::GetInstance() { |
24 return content::GetContentClient()->browser()->GetDevToolsManager(); | 23 return content::GetContentClient()->browser()->GetDevToolsManager(); |
25 } | 24 } |
26 | 25 |
27 DevToolsManager::DevToolsManager() | 26 DevToolsManager::DevToolsManager() |
28 : last_orphan_cookie_(0) { | 27 : last_orphan_cookie_(0) { |
29 } | 28 } |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 for (AgentToClientHostMap::iterator it = | 275 for (AgentToClientHostMap::iterator it = |
277 agent_to_client_host_.begin(); | 276 agent_to_client_host_.begin(); |
278 it != agent_to_client_host_.end(); ++it) { | 277 it != agent_to_client_host_.end(); ++it) { |
279 agents.push_back(it->first); | 278 agents.push_back(it->first); |
280 } | 279 } |
281 for (std::vector<DevToolsAgentHost*>::iterator it = agents.begin(); | 280 for (std::vector<DevToolsAgentHost*>::iterator it = agents.begin(); |
282 it != agents.end(); ++it) { | 281 it != agents.end(); ++it) { |
283 UnregisterDevToolsClientHostFor(*it); | 282 UnregisterDevToolsClientHostFor(*it); |
284 } | 283 } |
285 } | 284 } |
OLD | NEW |