OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/devtools/devtools_target_impl.h" | 5 #include "chrome/browser/devtools/devtools_target_impl.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/devtools/devtools_window.h" | 9 #include "chrome/browser/devtools/devtools_window.h" |
10 #include "chrome/browser/extensions/extension_host.h" | |
11 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/extensions/extension_tab_util.h" | 11 #include "chrome/browser/extensions/extension_tab_util.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" | 13 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" |
15 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 14 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
16 #include "chrome/common/extensions/extension_constants.h" | 15 #include "chrome/common/extensions/extension_constants.h" |
17 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/favicon_status.h" | 17 #include "content/public/browser/favicon_status.h" |
19 #include "content/public/browser/navigation_entry.h" | 18 #include "content/public/browser/navigation_entry.h" |
20 #include "content/public/browser/render_frame_host.h" | 19 #include "content/public/browser/render_frame_host.h" |
21 #include "content/public/browser/render_view_host.h" | 20 #include "content/public/browser/render_view_host.h" |
22 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
| 22 #include "extensions/browser/extension_host.h" |
23 #include "extensions/browser/extension_system.h" | 23 #include "extensions/browser/extension_system.h" |
24 | 24 |
25 using content::BrowserThread; | 25 using content::BrowserThread; |
26 using content::DevToolsAgentHost; | 26 using content::DevToolsAgentHost; |
27 using content::RenderViewHost; | 27 using content::RenderViewHost; |
28 using content::WebContents; | 28 using content::WebContents; |
29 using content::WorkerService; | 29 using content::WorkerService; |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 // static | 327 // static |
328 void DevToolsTargetImpl::EnumerateAllTargets(Callback callback) { | 328 void DevToolsTargetImpl::EnumerateAllTargets(Callback callback) { |
329 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 329 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
330 content::BrowserThread::PostTask( | 330 content::BrowserThread::PostTask( |
331 content::BrowserThread::IO, | 331 content::BrowserThread::IO, |
332 FROM_HERE, | 332 FROM_HERE, |
333 base::Bind(&DevToolsTargetImpl::EnumerateWorkerTargets, | 333 base::Bind(&DevToolsTargetImpl::EnumerateWorkerTargets, |
334 base::Bind(&CollectAllTargets, callback))); | 334 base::Bind(&CollectAllTargets, callback))); |
335 } | 335 } |
OLD | NEW |