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

Side by Side Diff: remoting/client/jni/jni_client.h

Issue 1472053003: jni: Pass method parameters as JavaParamRef in remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | remoting/client/jni/jni_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef REMOTING_CLIENT_JNI_JNI_CLIENT_H_ 5 #ifndef REMOTING_CLIENT_JNI_JNI_CLIENT_H_
6 #define REMOTING_CLIENT_JNI_JNI_CLIENT_H_ 6 #define REMOTING_CLIENT_JNI_JNI_CLIENT_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h"
10 #include "base/macros.h" 11 #include "base/macros.h"
11 12
12 namespace remoting { 13 namespace remoting {
13 14
14 class JniClient { 15 class JniClient {
15 public: 16 public:
16 JniClient(); 17 JniClient();
17 ~JniClient(); 18 ~JniClient();
18 19
19 // Register C++ methods exposed to Java using JNI. 20 // Register C++ methods exposed to Java using JNI.
20 static bool RegisterJni(JNIEnv* env); 21 static bool RegisterJni(JNIEnv* env);
21 22
22 void Destroy(JNIEnv* env, jobject caller); 23 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& caller);
23 24
24 private: 25 private:
25 DISALLOW_COPY_AND_ASSIGN(JniClient); 26 DISALLOW_COPY_AND_ASSIGN(JniClient);
26 }; 27 };
27 28
28 } // namespace remoting 29 } // namespace remoting
29 30
30 #endif // REMOTING_CLIENT_JNI_JNI_CLIENT_H_ 31 #endif // REMOTING_CLIENT_JNI_JNI_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/jni/jni_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698