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/extensions/devtools_util.h" | 5 #include "chrome/browser/extensions/devtools_util.h" |
6 | 6 |
7 #include "chrome/browser/devtools/devtools_window.h" | 7 #include "chrome/browser/devtools/devtools_window.h" |
8 #include "chrome/browser/extensions/extension_host.h" | 8 #include "chrome/browser/extensions/extension_host.h" |
9 #include "chrome/browser/extensions/extension_process_manager.h" | |
10 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/common/extensions/extension.h" | 11 #include "chrome/common/extensions/extension.h" |
13 #include "extensions/browser/lazy_background_task_queue.h" | 12 #include "extensions/browser/lazy_background_task_queue.h" |
| 13 #include "extensions/browser/process_manager.h" |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 namespace devtools_util { | 16 namespace devtools_util { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Helper to inspect an ExtensionHost after it has been loaded. | 20 // Helper to inspect an ExtensionHost after it has been loaded. |
21 void InspectExtensionHost(ExtensionHost* host) { | 21 void InspectExtensionHost(ExtensionHost* host) { |
22 if (host) | 22 if (host) |
23 DevToolsWindow::OpenDevToolsWindow(host->render_view_host()); | 23 DevToolsWindow::OpenDevToolsWindow(host->render_view_host()); |
(...skipping 11 matching lines...) Expand all Loading... |
35 } else { | 35 } else { |
36 system->lazy_background_task_queue()->AddPendingTask( | 36 system->lazy_background_task_queue()->AddPendingTask( |
37 profile, | 37 profile, |
38 extension->id(), | 38 extension->id(), |
39 base::Bind(&InspectExtensionHost)); | 39 base::Bind(&InspectExtensionHost)); |
40 } | 40 } |
41 } | 41 } |
42 | 42 |
43 } // namespace devtools_util | 43 } // namespace devtools_util |
44 } // namespace extensions | 44 } // namespace extensions |
OLD | NEW |