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

Side by Side Diff: android_webview/browser/aw_devtools_manager_delegate.cc

Issue 2344753002: DevTools: return discovered targets asynchronously. (Closed)
Patch Set: for bots Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/android/devtools_manager_delegate_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "android_webview/browser/aw_devtools_manager_delegate.h" 5 #include "android_webview/browser/aw_devtools_manager_delegate.h"
6 6
7 #include "android_webview/browser/browser_view_renderer.h" 7 #include "android_webview/browser/browser_view_renderer.h"
8 #include "android_webview/common/aw_content_client.h" 8 #include "android_webview/common/aw_content_client.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "content/public/browser/devtools_agent_host.h" 13 #include "content/public/browser/devtools_agent_host.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 15
16 using content::DevToolsAgentHost; 16 using content::DevToolsAgentHost;
17 using content::RenderFrameHost; 17 using content::RenderFrameHost;
18 18
19 namespace android_webview { 19 namespace android_webview {
20 20
21 AwDevToolsManagerDelegate::AwDevToolsManagerDelegate() { 21 AwDevToolsManagerDelegate::AwDevToolsManagerDelegate() {
22 content::DevToolsAgentHost::AddDiscoveryProvider(
23 base::Bind(&DevToolsAgentHost::GetOrCreateAll));
24 } 22 }
25 23
26 AwDevToolsManagerDelegate::~AwDevToolsManagerDelegate() { 24 AwDevToolsManagerDelegate::~AwDevToolsManagerDelegate() {
27 } 25 }
28 26
29 void AwDevToolsManagerDelegate::Inspect(DevToolsAgentHost* agent_host) { 27 void AwDevToolsManagerDelegate::Inspect(DevToolsAgentHost* agent_host) {
30 } 28 }
31 29
32 void AwDevToolsManagerDelegate::DevToolsAgentStateChanged( 30 void AwDevToolsManagerDelegate::DevToolsAgentStateChanged(
33 DevToolsAgentHost* agent_host, bool attached) { 31 DevToolsAgentHost* agent_host, bool attached) {
(...skipping 27 matching lines...) Expand all
61 const char html[] = 59 const char html[] =
62 "<html>" 60 "<html>"
63 "<head><title>WebView remote debugging</title></head>" 61 "<head><title>WebView remote debugging</title></head>"
64 "<body>Please use <a href=\'chrome://inspect\'>chrome://inspect</a>" 62 "<body>Please use <a href=\'chrome://inspect\'>chrome://inspect</a>"
65 "</body>" 63 "</body>"
66 "</html>"; 64 "</html>";
67 return html; 65 return html;
68 } 66 }
69 67
70 } // namespace android_webview 68 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/devtools_manager_delegate_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698