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 "content/shell/browser/shell_devtools_frontend.h" | 5 #include "content/shell/browser/shell_devtools_frontend.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/path_service.h" | |
10 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
13 #include "content/public/browser/devtools_http_handler.h" | 12 #include "content/public/browser/devtools_http_handler.h" |
14 #include "content/public/browser/render_frame_host.h" | 13 #include "content/public/browser/render_frame_host.h" |
15 #include "content/public/browser/render_view_host.h" | 14 #include "content/public/browser/render_view_host.h" |
16 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
17 #include "content/public/common/content_client.h" | 16 #include "content/public/common/content_client.h" |
18 #include "content/shell/browser/shell.h" | 17 #include "content/shell/browser/shell.h" |
19 #include "content/shell/browser/shell_browser_context.h" | 18 #include "content/shell/browser/shell_browser_context.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 base::string16 javascript = base::UTF8ToUTF16(code); | 135 base::string16 javascript = base::UTF8ToUTF16(code); |
137 web_contents()->GetMainFrame()->ExecuteJavaScript(javascript); | 136 web_contents()->GetMainFrame()->ExecuteJavaScript(javascript); |
138 } | 137 } |
139 | 138 |
140 void ShellDevToolsFrontend::AgentHostClosed( | 139 void ShellDevToolsFrontend::AgentHostClosed( |
141 DevToolsAgentHost* agent_host, bool replaced) { | 140 DevToolsAgentHost* agent_host, bool replaced) { |
142 frontend_shell_->Close(); | 141 frontend_shell_->Close(); |
143 } | 142 } |
144 | 143 |
145 } // namespace content | 144 } // namespace content |
OLD | NEW |