| Index: remoting/client/jni/chromoting_jni.h
|
| diff --git a/remoting/client/jni/chromoting_jni.h b/remoting/client/jni/chromoting_jni.h
|
| index 23df7b039e272797c110394c94d8464bb38d78a1..b9a670932a95ae8b26208927eb766318248e4a88 100644
|
| --- a/remoting/client/jni/chromoting_jni.h
|
| +++ b/remoting/client/jni/chromoting_jni.h
|
| @@ -10,17 +10,17 @@
|
| #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;
|
|
|
| // 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
|
| @@ -70,6 +70,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();
|
|
|
|
|