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

Side by Side Diff: content/shell/browser/shell_devtools_manager_delegate.cc

Issue 2767513002: Revert of DevTools: android shouldn't depend on devtools frontend (Closed)
Patch Set: Created 3 years, 9 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
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 "content/shell/browser/shell_devtools_manager_delegate.h" 5 #include "content/shell/browser/shell_devtools_manager_delegate.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/atomicops.h" 11 #include "base/atomicops.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
17 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "build/build_config.h" 20 #include "build/build_config.h"
21 #include "content/public/browser/browser_context.h" 21 #include "content/public/browser/browser_context.h"
22 #include "content/public/browser/devtools_agent_host.h" 22 #include "content/public/browser/devtools_agent_host.h"
23 #include "content/public/browser/devtools_frontend_host.h"
23 #include "content/public/browser/devtools_socket_factory.h" 24 #include "content/public/browser/devtools_socket_factory.h"
24 #include "content/public/browser/favicon_status.h" 25 #include "content/public/browser/favicon_status.h"
25 #include "content/public/browser/navigation_entry.h" 26 #include "content/public/browser/navigation_entry.h"
26 #include "content/public/browser/render_view_host.h" 27 #include "content/public/browser/render_view_host.h"
27 #include "content/public/browser/web_contents.h" 28 #include "content/public/browser/web_contents.h"
28 #include "content/public/common/content_switches.h" 29 #include "content/public/common/content_switches.h"
29 #include "content/public/common/url_constants.h" 30 #include "content/public/common/url_constants.h"
30 #include "content/public/common/user_agent.h" 31 #include "content/public/common/user_agent.h"
31 #include "content/shell/browser/shell.h" 32 #include "content/shell/browser/shell.h"
32 #include "content/shell/common/shell_content_client.h" 33 #include "content/shell/common/shell_content_client.h"
33 #include "content/shell/grit/shell_resources.h" 34 #include "content/shell/grit/shell_resources.h"
34 #include "net/base/net_errors.h" 35 #include "net/base/net_errors.h"
35 #include "net/log/net_log_source.h" 36 #include "net/log/net_log_source.h"
36 #include "net/socket/tcp_server_socket.h" 37 #include "net/socket/tcp_server_socket.h"
37 #include "ui/base/resource/resource_bundle.h" 38 #include "ui/base/resource/resource_bundle.h"
38 39
39 #if !defined(OS_ANDROID)
40 #include "content/public/browser/devtools_frontend_host.h"
41 #endif
42
43 #if defined(OS_ANDROID) 40 #if defined(OS_ANDROID)
44 #include "content/public/browser/android/devtools_auth.h" 41 #include "content/public/browser/android/devtools_auth.h"
45 #include "net/socket/unix_domain_server_socket_posix.h" 42 #include "net/socket/unix_domain_server_socket_posix.h"
46 #endif 43 #endif
47 44
48 namespace content { 45 namespace content {
49 46
50 namespace { 47 namespace {
51 48
52 #if defined(OS_ANDROID) 49 #if defined(OS_ANDROID)
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 #if defined(OS_ANDROID) 197 #if defined(OS_ANDROID)
201 return std::string(); 198 return std::string();
202 #else 199 #else
203 return ResourceBundle::GetSharedInstance().GetRawDataResource( 200 return ResourceBundle::GetSharedInstance().GetRawDataResource(
204 IDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string(); 201 IDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE).as_string();
205 #endif 202 #endif
206 } 203 }
207 204
208 std::string ShellDevToolsManagerDelegate::GetFrontendResource( 205 std::string ShellDevToolsManagerDelegate::GetFrontendResource(
209 const std::string& path) { 206 const std::string& path) {
210 #if defined(OS_ANDROID)
211 return std::string();
212 #else
213 return content::DevToolsFrontendHost::GetFrontendResource(path).as_string(); 207 return content::DevToolsFrontendHost::GetFrontendResource(path).as_string();
214 #endif
215 } 208 }
216 209
217 } // namespace content 210 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_devtools_frontend.cc ('k') | headless/lib/browser/headless_devtools.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698