| 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 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/chrome_notification_types.h" | 24 #include "chrome/browser/chrome_notification_types.h" |
| 25 #include "chrome/browser/devtools/devtools_target_impl.h" | 25 #include "chrome/browser/devtools/devtools_target_impl.h" |
| 26 #include "chrome/browser/extensions/api/debugger/debugger_api_constants.h" | 26 #include "chrome/browser/extensions/api/debugger/debugger_api_constants.h" |
| 27 #include "chrome/browser/extensions/extension_service.h" | 27 #include "chrome/browser/extensions/extension_service.h" |
| 28 #include "chrome/browser/extensions/extension_tab_util.h" | 28 #include "chrome/browser/extensions/extension_tab_util.h" |
| 29 #include "chrome/browser/infobars/infobar_service.h" | 29 #include "chrome/browser/infobars/infobar_service.h" |
| 30 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
| 31 #include "chrome/browser/ui/browser.h" | 31 #include "chrome/browser/ui/browser.h" |
| 32 #include "chrome/browser/ui/browser_list.h" | 32 #include "chrome/browser/ui/browser_list.h" |
| 33 #include "chrome/browser/ui/browser_list_observer.h" | 33 #include "chrome/browser/ui/browser_list_observer.h" |
| 34 #include "chrome/browser/ui/host_desktop.h" |
| 34 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 35 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 35 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 36 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
| 36 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" | 37 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
| 37 #include "chrome/common/chrome_switches.h" | 38 #include "chrome/common/chrome_switches.h" |
| 38 #include "chrome/grit/generated_resources.h" | 39 #include "chrome/grit/generated_resources.h" |
| 39 #include "components/infobars/core/confirm_infobar_delegate.h" | 40 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 40 #include "components/infobars/core/infobar.h" | 41 #include "components/infobars/core/infobar.h" |
| 41 #include "content/public/browser/browser_thread.h" | 42 #include "content/public/browser/browser_thread.h" |
| 42 #include "content/public/browser/devtools_agent_host.h" | 43 #include "content/public/browser/devtools_agent_host.h" |
| 43 #include "content/public/browser/notification_service.h" | 44 #include "content/public/browser/notification_service.h" |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 const std::vector<DevToolsTargetImpl*>& target_list) { | 768 const std::vector<DevToolsTargetImpl*>& target_list) { |
| 768 scoped_ptr<base::ListValue> result(new base::ListValue()); | 769 scoped_ptr<base::ListValue> result(new base::ListValue()); |
| 769 for (size_t i = 0; i < target_list.size(); ++i) | 770 for (size_t i = 0; i < target_list.size(); ++i) |
| 770 result->Append(SerializeTarget(*target_list[i])); | 771 result->Append(SerializeTarget(*target_list[i])); |
| 771 STLDeleteContainerPointers(target_list.begin(), target_list.end()); | 772 STLDeleteContainerPointers(target_list.begin(), target_list.end()); |
| 772 SetResult(result.release()); | 773 SetResult(result.release()); |
| 773 SendResponse(true); | 774 SendResponse(true); |
| 774 } | 775 } |
| 775 | 776 |
| 776 } // namespace extensions | 777 } // namespace extensions |
| OLD | NEW |