| 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 // Implements the Chrome Extensions Debugger API. | 5 // Implements the Chrome Extensions Debugger API. |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/api/debugger/debugger_api.h" | 7 #include "chrome/browser/extensions/api/debugger/debugger_api.h" |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chrome/browser/extensions/extension_host.h" | 25 #include "chrome/browser/extensions/extension_host.h" |
| 26 #include "chrome/browser/extensions/extension_service.h" | 26 #include "chrome/browser/extensions/extension_service.h" |
| 27 #include "chrome/browser/extensions/extension_system.h" | 27 #include "chrome/browser/extensions/extension_system.h" |
| 28 #include "chrome/browser/extensions/extension_tab_util.h" | 28 #include "chrome/browser/extensions/extension_tab_util.h" |
| 29 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | 29 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
| 30 #include "chrome/browser/infobars/infobar.h" | 30 #include "chrome/browser/infobars/infobar.h" |
| 31 #include "chrome/browser/infobars/infobar_service.h" | 31 #include "chrome/browser/infobars/infobar_service.h" |
| 32 #include "chrome/browser/profiles/profile.h" | 32 #include "chrome/browser/profiles/profile.h" |
| 33 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" | 33 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
| 34 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
| 35 #include "chrome/common/extensions/extension.h" | |
| 36 #include "content/public/browser/devtools_agent_host.h" | 35 #include "content/public/browser/devtools_agent_host.h" |
| 37 #include "content/public/browser/devtools_client_host.h" | 36 #include "content/public/browser/devtools_client_host.h" |
| 38 #include "content/public/browser/devtools_http_handler.h" | 37 #include "content/public/browser/devtools_http_handler.h" |
| 39 #include "content/public/browser/devtools_manager.h" | 38 #include "content/public/browser/devtools_manager.h" |
| 40 #include "content/public/browser/notification_service.h" | 39 #include "content/public/browser/notification_service.h" |
| 41 #include "content/public/browser/notification_source.h" | 40 #include "content/public/browser/notification_source.h" |
| 42 #include "content/public/browser/render_process_host.h" | 41 #include "content/public/browser/render_process_host.h" |
| 43 #include "content/public/browser/render_view_host.h" | 42 #include "content/public/browser/render_view_host.h" |
| 44 #include "content/public/browser/render_widget_host.h" | 43 #include "content/public/browser/render_widget_host.h" |
| 45 #include "content/public/browser/web_contents.h" | 44 #include "content/public/browser/web_contents.h" |
| 46 #include "content/public/common/content_client.h" | 45 #include "content/public/common/content_client.h" |
| 47 #include "content/public/common/url_utils.h" | 46 #include "content/public/common/url_utils.h" |
| 48 #include "extensions/common/error_utils.h" | 47 #include "extensions/common/error_utils.h" |
| 48 #include "extensions/common/extension.h" |
| 49 #include "grit/generated_resources.h" | 49 #include "grit/generated_resources.h" |
| 50 #include "ui/base/l10n/l10n_util.h" | 50 #include "ui/base/l10n/l10n_util.h" |
| 51 | 51 |
| 52 using content::DevToolsAgentHost; | 52 using content::DevToolsAgentHost; |
| 53 using content::DevToolsClientHost; | 53 using content::DevToolsClientHost; |
| 54 using content::DevToolsHttpHandler; | 54 using content::DevToolsHttpHandler; |
| 55 using content::DevToolsManager; | 55 using content::DevToolsManager; |
| 56 using content::RenderProcessHost; | 56 using content::RenderProcessHost; |
| 57 using content::RenderViewHost; | 57 using content::RenderViewHost; |
| 58 using content::RenderWidgetHost; | 58 using content::RenderWidgetHost; |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 | 716 |
| 717 void DebuggerGetTargetsFunction::SendTargetList( | 717 void DebuggerGetTargetsFunction::SendTargetList( |
| 718 const std::vector<DevToolsTargetImpl*>& target_list) { | 718 const std::vector<DevToolsTargetImpl*>& target_list) { |
| 719 scoped_ptr<base::ListValue> result(new base::ListValue()); | 719 scoped_ptr<base::ListValue> result(new base::ListValue()); |
| 720 for (size_t i = 0; i < target_list.size(); ++i) | 720 for (size_t i = 0; i < target_list.size(); ++i) |
| 721 result->Append(SerializeTarget(*target_list[i])); | 721 result->Append(SerializeTarget(*target_list[i])); |
| 722 STLDeleteContainerPointers(target_list.begin(), target_list.end()); | 722 STLDeleteContainerPointers(target_list.begin(), target_list.end()); |
| 723 SetResult(result.release()); | 723 SetResult(result.release()); |
| 724 SendResponse(true); | 724 SendResponse(true); |
| 725 } | 725 } |
| OLD | NEW |