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

Unified Diff: remoting/client/jni/chromoting_jni_instance.h

Issue 19297003: Add support for drawing video onto a Java ByteBuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reword highly cryptic comment Created 7 years, 5 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/client/jni/chromoting_jni_instance.h
diff --git a/remoting/client/jni/chromoting_jni_instance.h b/remoting/client/jni/chromoting_jni_instance.h
index 069c8bcdc0780e84d2fdbd318640afead687c65a..521aa47c9af7821af785c5959a6d8b8976c1d7fc 100644
--- a/remoting/client/jni/chromoting_jni_instance.h
+++ b/remoting/client/jni/chromoting_jni_instance.h
@@ -15,12 +15,12 @@
#include "remoting/client/client_context.h"
#include "remoting/client/client_user_interface.h"
#include "remoting/client/frame_consumer_proxy.h"
+#include "remoting/client/jni/frame_consumer_impl.h"
#include "remoting/jingle_glue/network_settings.h"
#include "remoting/jingle_glue/xmpp_signal_strategy.h"
#include "remoting/protocol/connection_to_host.h"
namespace remoting {
-class ChromotingJni;
// TODO(solb) Move into location shared with client plugin.
const char* const CHAT_SERVER = "talk.google.com";
@@ -50,6 +50,9 @@ class ChromotingJniInstance
// but only after the UI has been asked to provide a PIN (via FetchSecret()).
void ProvideSecret(const char* pin);
+ // Schedules a redraw on the display thread. May be called from any thread.
+ void RedrawGraphics();
Wez 2013/07/16 02:18:12 nit: RedrawCanvas, for consistency w/ ChromotingJn
solb 2013/07/16 18:00:57 Done.
+
// ClientUserInterface implementation.
virtual void OnConnectionState(
protocol::ConnectionToHost::State state,
@@ -72,10 +75,13 @@ class ChromotingJniInstance
// Notifies the user interface that the user needs to enter a PIN. The
// current authentication attempt is put on hold until |callback| is invoked.
+ // May be called on any thread.
void FetchSecret(bool pairable,
const protocol::SecretFetchedCallback& callback);
+ // This group of variables is to be used on the display thread.
scoped_refptr<FrameConsumerProxy> frame_consumer_;
+ scoped_ptr<FrameConsumerImpl> view_;
// This group of variables is to be used on the network thread.
scoped_ptr<ClientConfig> client_config_;

Powered by Google App Engine
This is Rietveld 408576698