| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/devtools/devtools_manager_impl.h" | 5 #include "content/browser/devtools/devtools_manager_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "content/browser/devtools/devtools_netlog_observer.h" | 11 #include "content/browser/devtools/devtools_netlog_observer.h" |
| 12 #include "content/browser/devtools/render_view_devtools_agent_host.h" | 12 #include "content/browser/devtools/render_view_devtools_agent_host.h" |
| 13 #include "content/browser/renderer_host/render_view_host_impl.h" | 13 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 14 #include "content/browser/web_contents/web_contents_impl.h" | 14 #include "content/browser/web_contents/web_contents_impl.h" |
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 #include "content/public/browser/devtools_client_host.h" | 16 #include "content/public/browser/devtools_client_host.h" |
| 17 #include "googleurl/src/gurl.h" | |
| 18 | 17 |
| 19 namespace content { | 18 namespace content { |
| 20 | 19 |
| 21 // static | 20 // static |
| 22 DevToolsManager* DevToolsManager::GetInstance() { | 21 DevToolsManager* DevToolsManager::GetInstance() { |
| 23 return DevToolsManagerImpl::GetInstance(); | 22 return DevToolsManagerImpl::GetInstance(); |
| 24 } | 23 } |
| 25 | 24 |
| 26 // static | 25 // static |
| 27 DevToolsManagerImpl* DevToolsManagerImpl::GetInstance() { | 26 DevToolsManagerImpl* DevToolsManagerImpl::GetInstance() { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 } | 184 } |
| 186 | 185 |
| 187 void DevToolsManagerImpl::NotifyObservers(DevToolsAgentHost* agent_host, | 186 void DevToolsManagerImpl::NotifyObservers(DevToolsAgentHost* agent_host, |
| 188 bool attached) { | 187 bool attached) { |
| 189 CallbackContainer copy(callbacks_); | 188 CallbackContainer copy(callbacks_); |
| 190 for (CallbackContainer::iterator it = copy.begin(); it != copy.end(); ++it) | 189 for (CallbackContainer::iterator it = copy.begin(); it != copy.end(); ++it) |
| 191 (*it)->Run(agent_host, attached); | 190 (*it)->Run(agent_host, attached); |
| 192 } | 191 } |
| 193 | 192 |
| 194 } // namespace content | 193 } // namespace content |
| OLD | NEW |