OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "content/browser/android/remote_debugging_controller.h" | |
6 | |
7 #include <jni.h> | |
8 | |
9 #include "content/public/browser/android/devtools_server.h" | |
10 #include "jni/RemoteDebuggingController_jni.h" | |
11 | |
12 namespace content { | |
13 | |
14 static void StartRemoteDebugging(JNIEnv*, jclass) { | |
15 DevToolsServer::GetInstance()->Start(); | |
16 } | |
17 | |
18 static void StopRemoteDebugging(JNIEnv* , jclass) { | |
19 DevToolsServer::GetInstance()->Stop(); | |
20 } | |
21 | |
22 static jboolean IsRemoteDebuggingEnabled(JNIEnv*, jclass) { | |
23 return DevToolsServer::GetInstance()->IsStarted(); | |
24 } | |
25 | |
26 bool RegisterRemoteDebuggingController(JNIEnv* env) { | |
27 return RegisterNativesImpl(env); | |
28 } | |
29 | |
30 } // namespace content | |
OLD | NEW |