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 "android_webview/native/aw_dev_tools_server.h" | 5 #include "android_webview/native/aw_dev_tools_server.h" |
6 | 6 |
7 #include "android_webview/browser/in_process_view_renderer.h" | 7 #include "android_webview/browser/in_process_view_renderer.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 virtual base::FilePath GetDebugFrontendDir() OVERRIDE { | 92 virtual base::FilePath GetDebugFrontendDir() OVERRIDE { |
93 return base::FilePath(); | 93 return base::FilePath(); |
94 } | 94 } |
95 | 95 |
96 virtual std::string GetPageThumbnailData(const GURL&) OVERRIDE { | 96 virtual std::string GetPageThumbnailData(const GURL&) OVERRIDE { |
97 return ""; | 97 return ""; |
98 } | 98 } |
99 | 99 |
100 virtual scoped_ptr<content::DevToolsTarget> CreateNewTarget( | 100 virtual scoped_ptr<content::DevToolsTarget> CreateNewTarget() OVERRIDE { |
101 const GURL&) OVERRIDE { | |
102 return scoped_ptr<content::DevToolsTarget>(); | 101 return scoped_ptr<content::DevToolsTarget>(); |
103 } | 102 } |
104 | 103 |
105 virtual void EnumerateTargets(TargetCallback callback) OVERRIDE { | 104 virtual void EnumerateTargets(TargetCallback callback) OVERRIDE { |
106 TargetList targets; | 105 TargetList targets; |
107 std::vector<RenderViewHost*> rvh_list = | 106 std::vector<RenderViewHost*> rvh_list = |
108 DevToolsAgentHost::GetValidRenderViewHosts(); | 107 DevToolsAgentHost::GetValidRenderViewHosts(); |
109 for (std::vector<RenderViewHost*>::iterator it = rvh_list.begin(); | 108 for (std::vector<RenderViewHost*>::iterator it = rvh_list.begin(); |
110 it != rvh_list.end(); ++it) { | 109 it != rvh_list.end(); ++it) { |
111 WebContents* web_contents = WebContents::FromRenderViewHost(*it); | 110 WebContents* web_contents = WebContents::FromRenderViewHost(*it); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 AwDevToolsServer* devtools_server = | 215 AwDevToolsServer* devtools_server = |
217 reinterpret_cast<AwDevToolsServer*>(server); | 216 reinterpret_cast<AwDevToolsServer*>(server); |
218 if (enabled) { | 217 if (enabled) { |
219 devtools_server->Start(); | 218 devtools_server->Start(); |
220 } else { | 219 } else { |
221 devtools_server->Stop(); | 220 devtools_server->Stop(); |
222 } | 221 } |
223 } | 222 } |
224 | 223 |
225 } // namespace android_webview | 224 } // namespace android_webview |
OLD | NEW |