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/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 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 // static | 20 // static |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 } | 182 } |
183 | 183 |
184 void DevToolsManagerImpl::NotifyObservers(DevToolsAgentHost* agent_host, | 184 void DevToolsManagerImpl::NotifyObservers(DevToolsAgentHost* agent_host, |
185 bool attached) { | 185 bool attached) { |
186 CallbackContainer copy(callbacks_); | 186 CallbackContainer copy(callbacks_); |
187 for (CallbackContainer::iterator it = copy.begin(); it != copy.end(); ++it) | 187 for (CallbackContainer::iterator it = copy.begin(); it != copy.end(); ++it) |
188 (*it)->Run(agent_host, attached); | 188 (*it)->Run(agent_host, attached); |
189 } | 189 } |
190 | 190 |
191 } // namespace content | 191 } // namespace content |
OLD | NEW |