Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1010)

Side by Side Diff: chrome/browser/extensions/api/debugger/debugger_api.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/json/json_reader.h" 13 #include "base/json/json_reader.h"
14 #include "base/json/json_writer.h" 14 #include "base/json/json_writer.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/singleton.h" 16 #include "base/memory/singleton.h"
17 #include "base/stl_util.h" 17 #include "base/stl_util.h"
18 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "base/values.h" 20 #include "base/values.h"
21 #include "chrome/browser/chrome_notification_types.h" 21 #include "chrome/browser/chrome_notification_types.h"
22 #include "chrome/browser/devtools/devtools_target_impl.h" 22 #include "chrome/browser/devtools/devtools_target_impl.h"
23 #include "chrome/browser/extensions/api/debugger/debugger_api_constants.h" 23 #include "chrome/browser/extensions/api/debugger/debugger_api_constants.h"
24 #include "chrome/browser/extensions/extension_host.h" 24 #include "chrome/browser/extensions/extension_host.h"
25 #include "chrome/browser/extensions/extension_service.h" 25 #include "chrome/browser/extensions/extension_service.h"
26 #include "chrome/browser/extensions/extension_system.h"
27 #include "chrome/browser/extensions/extension_tab_util.h" 26 #include "chrome/browser/extensions/extension_tab_util.h"
28 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 27 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
29 #include "chrome/browser/infobars/infobar.h" 28 #include "chrome/browser/infobars/infobar.h"
30 #include "chrome/browser/infobars/infobar_service.h" 29 #include "chrome/browser/infobars/infobar_service.h"
31 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
32 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 31 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
33 #include "chrome/common/chrome_switches.h" 32 #include "chrome/common/chrome_switches.h"
34 #include "content/public/browser/devtools_agent_host.h" 33 #include "content/public/browser/devtools_agent_host.h"
35 #include "content/public/browser/devtools_client_host.h" 34 #include "content/public/browser/devtools_client_host.h"
36 #include "content/public/browser/devtools_http_handler.h" 35 #include "content/public/browser/devtools_http_handler.h"
37 #include "content/public/browser/devtools_manager.h" 36 #include "content/public/browser/devtools_manager.h"
38 #include "content/public/browser/notification_service.h" 37 #include "content/public/browser/notification_service.h"
39 #include "content/public/browser/notification_source.h" 38 #include "content/public/browser/notification_source.h"
40 #include "content/public/browser/render_process_host.h" 39 #include "content/public/browser/render_process_host.h"
41 #include "content/public/browser/render_view_host.h" 40 #include "content/public/browser/render_view_host.h"
42 #include "content/public/browser/render_widget_host.h" 41 #include "content/public/browser/render_widget_host.h"
43 #include "content/public/browser/web_contents.h" 42 #include "content/public/browser/web_contents.h"
44 #include "content/public/common/content_client.h" 43 #include "content/public/common/content_client.h"
45 #include "content/public/common/url_utils.h" 44 #include "content/public/common/url_utils.h"
46 #include "extensions/browser/event_router.h" 45 #include "extensions/browser/event_router.h"
46 #include "extensions/browser/extension_system.h"
47 #include "extensions/common/error_utils.h" 47 #include "extensions/common/error_utils.h"
48 #include "extensions/common/extension.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;
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 711
712 void DebuggerGetTargetsFunction::SendTargetList( 712 void DebuggerGetTargetsFunction::SendTargetList(
713 const std::vector<DevToolsTargetImpl*>& target_list) { 713 const std::vector<DevToolsTargetImpl*>& target_list) {
714 scoped_ptr<base::ListValue> result(new base::ListValue()); 714 scoped_ptr<base::ListValue> result(new base::ListValue());
715 for (size_t i = 0; i < target_list.size(); ++i) 715 for (size_t i = 0; i < target_list.size(); ++i)
716 result->Append(SerializeTarget(*target_list[i])); 716 result->Append(SerializeTarget(*target_list[i]));
717 STLDeleteContainerPointers(target_list.begin(), target_list.end()); 717 STLDeleteContainerPointers(target_list.begin(), target_list.end());
718 SetResult(result.release()); 718 SetResult(result.release());
719 SendResponse(true); 719 SendResponse(true);
720 } 720 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698