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

Unified Diff: remoting/host/android/jni_host.h

Issue 1884253003: [remoting android] Plumb It2Me events from C++ to Java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android-host-it2me-connect
Patch Set: Address comments, git cl format Created 4 years, 8 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: remoting/host/android/jni_host.h
diff --git a/remoting/host/android/jni_host.h b/remoting/host/android/jni_host.h
index fb9cdaa67db08e0b536d9cd4ce113c4942a3ef3a..76d9b24094167743e52f69649dc8433a20ccbca8 100644
--- a/remoting/host/android/jni_host.h
+++ b/remoting/host/android/jni_host.h
@@ -23,7 +23,7 @@ class It2MeHostFactory;
class JniHost : public It2MeHost::Observer {
public:
- JniHost();
+ JniHost(JNIEnv* env, jobject java_host);
virtual ~JniHost();
// Register C++ methods exposed to Java using JNI.
@@ -48,6 +48,8 @@ class JniHost : public It2MeHost::Observer {
const std::string& error_message) override;
private:
+ base::android::ScopedJavaGlobalRef<jobject> java_host_;
+
std::unique_ptr<base::MessageLoopForUI> ui_loop_;
std::unique_ptr<ChromotingHostContext> host_context_;
std::unique_ptr<It2MeHostFactory> factory_;
« no previous file with comments | « remoting/android/host/src/org/chromium/chromoting/host/jni/It2MeHostObserver.java ('k') | remoting/host/android/jni_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698