Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include "chrome/browser/android/dev_tools_server.h" | 5 #include "chrome/browser/android/dev_tools_server.h" |
| 6 | 6 |
| 7 #include <pwd.h> | 7 #include <pwd.h> |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 | 9 |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 #include "content/public/browser/devtools_http_handler.h" | 30 #include "content/public/browser/devtools_http_handler.h" |
| 31 #include "content/public/browser/devtools_http_handler_delegate.h" | 31 #include "content/public/browser/devtools_http_handler_delegate.h" |
| 32 #include "content/public/browser/devtools_target.h" | 32 #include "content/public/browser/devtools_target.h" |
| 33 #include "content/public/browser/favicon_status.h" | 33 #include "content/public/browser/favicon_status.h" |
| 34 #include "content/public/browser/navigation_entry.h" | 34 #include "content/public/browser/navigation_entry.h" |
| 35 #include "content/public/browser/render_view_host.h" | 35 #include "content/public/browser/render_view_host.h" |
| 36 #include "content/public/browser/web_contents.h" | 36 #include "content/public/browser/web_contents.h" |
| 37 #include "content/public/browser/web_contents_delegate.h" | 37 #include "content/public/browser/web_contents_delegate.h" |
| 38 #include "content/public/common/content_switches.h" | 38 #include "content/public/common/content_switches.h" |
| 39 #include "content/public/common/url_constants.h" | 39 #include "content/public/common/url_constants.h" |
| 40 #include "grit/devtools_discovery_page_resources.h" | 40 #include "grit/browser_resources.h" |
|
pfeldman
2014/01/07 15:17:52
I am not sure it is ok for Chrome for Android to i
| |
| 41 #include "jni/DevToolsServer_jni.h" | 41 #include "jni/DevToolsServer_jni.h" |
| 42 #include "net/socket/unix_domain_socket_posix.h" | 42 #include "net/socket/unix_domain_socket_posix.h" |
| 43 #include "net/url_request/url_request_context_getter.h" | 43 #include "net/url_request/url_request_context_getter.h" |
| 44 #include "ui/base/resource/resource_bundle.h" | 44 #include "ui/base/resource/resource_bundle.h" |
| 45 #include "webkit/common/user_agent/user_agent_util.h" | 45 #include "webkit/common/user_agent/user_agent_util.h" |
| 46 | 46 |
| 47 using content::DevToolsAgentHost; | 47 using content::DevToolsAgentHost; |
| 48 using content::RenderViewHost; | 48 using content::RenderViewHost; |
| 49 using content::WebContents; | 49 using content::WebContents; |
| 50 | 50 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 463 jobject obj, | 463 jobject obj, |
| 464 jint server, | 464 jint server, |
| 465 jboolean enabled) { | 465 jboolean enabled) { |
| 466 DevToolsServer* devtools_server = reinterpret_cast<DevToolsServer*>(server); | 466 DevToolsServer* devtools_server = reinterpret_cast<DevToolsServer*>(server); |
| 467 if (enabled) { | 467 if (enabled) { |
| 468 devtools_server->Start(); | 468 devtools_server->Start(); |
| 469 } else { | 469 } else { |
| 470 devtools_server->Stop(); | 470 devtools_server->Stop(); |
| 471 } | 471 } |
| 472 } | 472 } |
| OLD | NEW |