| 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/context_utils.h" |
| 10 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
| 11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 12 #include "base/bind.h" | 13 #include "base/bind.h" |
| 13 #include "base/callback.h" | 14 #include "base/callback.h" |
| 14 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 15 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 16 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
| 17 #include "base/logging.h" | 18 #include "base/logging.h" |
| 18 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 jlong server, | 261 jlong server, |
| 261 jboolean enabled, | 262 jboolean enabled, |
| 262 jboolean allow_debug_permission) { | 263 jboolean allow_debug_permission) { |
| 263 DevToolsServer* devtools_server = reinterpret_cast<DevToolsServer*>(server); | 264 DevToolsServer* devtools_server = reinterpret_cast<DevToolsServer*>(server); |
| 264 if (enabled) { | 265 if (enabled) { |
| 265 devtools_server->Start(allow_debug_permission); | 266 devtools_server->Start(allow_debug_permission); |
| 266 } else { | 267 } else { |
| 267 devtools_server->Stop(); | 268 devtools_server->Stop(); |
| 268 } | 269 } |
| 269 } | 270 } |
| OLD | NEW |