| Index: remoting/client/jni/chromoting_jni.h
|
| diff --git a/remoting/client/jni/chromoting_jni.h b/remoting/client/jni/chromoting_jni.h
|
| index 12d2f7ca71f9353f0a2ac36104fbda82ed27e64f..25aeb77a5794d9c77bc87893457666417a6e5ed3 100644
|
| --- a/remoting/client/jni/chromoting_jni.h
|
| +++ b/remoting/client/jni/chromoting_jni.h
|
| @@ -10,12 +10,12 @@
|
| #include "base/at_exit.h"
|
| #include "net/url_request/url_request_context_getter.h"
|
| #include "remoting/base/auto_thread.h"
|
| +#include "remoting/client/jni/chromoting_jni_instance.h"
|
| #include "remoting/protocol/connection_to_host.h"
|
|
|
| template<typename T> struct DefaultSingletonTraits;
|
|
|
| namespace remoting {
|
| -class ChromotingJniInstance;
|
|
|
| // Class and package name of the Java class supporting the methods we call.
|
| const char* const JAVA_CLASS = "org/chromium/chromoting/jni/JNIInterface";
|
| @@ -23,7 +23,7 @@ const char* const JAVA_CLASS = "org/chromium/chromoting/jni/JNIInterface";
|
| // Houses the global resources on which the Chromoting components run
|
| // (e.g. message loops and task runners). Proxies outgoing JNI calls from its
|
| // ChromotingJniInstance member to Java. All its methods should be invoked
|
| -// exclusively from the UI thread.
|
| +// exclusively from the UI thread unless otherwise noted.
|
| class ChromotingJni {
|
| public:
|
| // This class is instantiated at process initialization and persists until
|
| @@ -73,6 +73,12 @@ class ChromotingJni {
|
| // Pops up a dialog box asking the user to enter a PIN.
|
| void DisplayAuthenticationPrompt();
|
|
|
| + // Updates image dimensions and canvas memory space. Call on display thread.
|
| + void UpdateImageBuffer(int width, int height, jobject buffer);
|
| +
|
| + // Draws the latest image buffer onto the canvas. Call on the display thread.
|
| + void RedrawCanvas();
|
| +
|
| private:
|
| ChromotingJni();
|
|
|
|
|