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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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/remote_debugging_controller_jni.h"
11
12 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
13 content::DevToolsServer::GetInstance()->Start();
14 }
15
16 static void StopRemoteDebugging(JNIEnv* , jclass) {
17 content::DevToolsServer::GetInstance()->Stop();
18 }
19
20 static jboolean IsRemoteDebuggingEnabled(JNIEnv*, jclass) {
21 return content::DevToolsServer::GetInstance()->is_started();
22 }
23
24 namespace content {
25
26 bool RegisterRemoteDebuggingController(JNIEnv* env) {
27 return RegisterNativesImpl(env);
28 }
29
30 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698