Index: content/browser/android/remote_debugging_controller.cc |
diff --git a/content/browser/android/remote_debugging_controller.cc b/content/browser/android/remote_debugging_controller.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4ce9b40a855ab3879348730e44ebfe38962f270a |
--- /dev/null |
+++ b/content/browser/android/remote_debugging_controller.cc |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/browser/android/remote_debugging_controller.h" |
+ |
+#include <jni.h> |
+ |
+#include "content/browser/android/devtools_server.h" |
+#include "jni/remote_debugging_controller_jni.h" |
+ |
+static void StartRemoteDebugging(JNIEnv*, jclass) { |
+ DevToolsServer::GetInstance()->Start(); |
+} |
+ |
+static void StopRemoteDebugging(JNIEnv* , jclass) { |
+ DevToolsServer::GetInstance()->Stop(); |
+} |
+ |
+static jboolean IsRemoteDebuggingEnabled(JNIEnv*, jclass) { |
+ return DevToolsServer::GetInstance()->is_started(); |
+} |
+ |
+bool RegisterRemoteDebuggingController(JNIEnv* env) { |
+ return RegisterNativesImpl(env); |
+} |