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

Unified Diff: content/browser/android/remote_debugging_controller.cc

Issue 10540094: Add RemoteDebuggingController.java and its (native) dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move devtools_server.h to content/public Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
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..2a1b8390ee75ff538477c3231720ab4dd4754f92
--- /dev/null
+++ b/content/browser/android/remote_debugging_controller.cc
@@ -0,0 +1,30 @@
+// 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/public/browser/android/devtools_server.h"
+#include "jni/remote_debugging_controller_jni.h"
+
+static void StartRemoteDebugging(JNIEnv*, jclass) {
jochen (gone - plz use gerrit) 2012/06/18 11:32:40 what about moving those three functions into an an
mnaganov (inactive) 2012/06/18 12:26:52 They are called from Java code via JNI. This is th
Philippe 2012/06/18 13:28:59 Indeed, the JNI generator emits the following prot
+ content::DevToolsServer::GetInstance()->Start();
+}
+
+static void StopRemoteDebugging(JNIEnv* , jclass) {
+ content::DevToolsServer::GetInstance()->Stop();
+}
+
+static jboolean IsRemoteDebuggingEnabled(JNIEnv*, jclass) {
+ return content::DevToolsServer::GetInstance()->is_started();
+}
+
+namespace content {
+
+bool RegisterRemoteDebuggingController(JNIEnv* env) {
+ return RegisterNativesImpl(env);
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698