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

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

Issue 1559023003: Move VideoRenderer to remoting/protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/plugin/pepper_video_renderer.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROMOTING_JNI_INSTANCE_H_ 5 #ifndef REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_
6 #define REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_ 6 #define REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "remoting/client/chromoting_client.h" 15 #include "remoting/client/chromoting_client.h"
16 #include "remoting/client/client_context.h" 16 #include "remoting/client/client_context.h"
17 #include "remoting/client/client_user_interface.h" 17 #include "remoting/client/client_user_interface.h"
18 #include "remoting/proto/control.pb.h" 18 #include "remoting/proto/control.pb.h"
19 #include "remoting/proto/event.pb.h" 19 #include "remoting/proto/event.pb.h"
20 #include "remoting/protocol/clipboard_stub.h" 20 #include "remoting/protocol/clipboard_stub.h"
21 #include "remoting/protocol/cursor_shape_stub.h" 21 #include "remoting/protocol/cursor_shape_stub.h"
22 #include "remoting/signaling/xmpp_signal_strategy.h" 22 #include "remoting/signaling/xmpp_signal_strategy.h"
23 23
24 namespace remoting { 24 namespace remoting {
25 25
26 namespace protocol { 26 namespace protocol {
27 class ClipboardEvent; 27 class ClipboardEvent;
28 class CursorShapeInfo; 28 class CursorShapeInfo;
29 class PerformanceTracker; 29 class PerformanceTracker;
30 class VideoRenderer;
30 } // namespace protocol 31 } // namespace protocol
31 32
32 class ChromotingJniRuntime; 33 class ChromotingJniRuntime;
33 class ClientStatusLogger; 34 class ClientStatusLogger;
34 class JniFrameConsumer; 35 class JniFrameConsumer;
35 class TokenFetcherProxy; 36 class TokenFetcherProxy;
36 class VideoRenderer;
37 37
38 // ClientUserInterface that indirectly makes and receives JNI calls. 38 // ClientUserInterface that indirectly makes and receives JNI calls.
39 class ChromotingJniInstance 39 class ChromotingJniInstance
40 : public ClientUserInterface, 40 : public ClientUserInterface,
41 public protocol::ClipboardStub, 41 public protocol::ClipboardStub,
42 public protocol::CursorShapeStub, 42 public protocol::CursorShapeStub,
43 public base::RefCountedThreadSafe<ChromotingJniInstance> { 43 public base::RefCountedThreadSafe<ChromotingJniInstance> {
44 public: 44 public:
45 // Initiates a connection with the specified host. Call from the UI thread. 45 // Initiates a connection with the specified host. Call from the UI thread.
46 // The instance does not take ownership of |jni_runtime|. To connect with an 46 // The instance does not take ownership of |jni_runtime|. To connect with an
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 ChromotingJniRuntime* jni_runtime_; 147 ChromotingJniRuntime* jni_runtime_;
148 148
149 // ID of the host we are connecting to. 149 // ID of the host we are connecting to.
150 std::string host_id_; 150 std::string host_id_;
151 std::string host_jid_; 151 std::string host_jid_;
152 152
153 // This group of variables is to be used on the network thread. 153 // This group of variables is to be used on the network thread.
154 scoped_ptr<ClientContext> client_context_; 154 scoped_ptr<ClientContext> client_context_;
155 scoped_ptr<protocol::PerformanceTracker> perf_tracker_; 155 scoped_ptr<protocol::PerformanceTracker> perf_tracker_;
156 scoped_ptr<JniFrameConsumer> view_; 156 scoped_ptr<JniFrameConsumer> view_;
157 scoped_ptr<VideoRenderer> video_renderer_; 157 scoped_ptr<protocol::VideoRenderer> video_renderer_;
158 scoped_ptr<protocol::Authenticator> authenticator_; 158 scoped_ptr<protocol::Authenticator> authenticator_;
159 scoped_ptr<ChromotingClient> client_; 159 scoped_ptr<ChromotingClient> client_;
160 XmppSignalStrategy::XmppServerConfig xmpp_config_; 160 XmppSignalStrategy::XmppServerConfig xmpp_config_;
161 scoped_ptr<XmppSignalStrategy> signaling_; // Must outlive client_ 161 scoped_ptr<XmppSignalStrategy> signaling_; // Must outlive client_
162 scoped_ptr<ClientStatusLogger> client_status_logger_; 162 scoped_ptr<ClientStatusLogger> client_status_logger_;
163 base::WeakPtr<TokenFetcherProxy> token_fetcher_proxy_; 163 base::WeakPtr<TokenFetcherProxy> token_fetcher_proxy_;
164 164
165 // Pass this the user's PIN once we have it. To be assigned and accessed on 165 // Pass this the user's PIN once we have it. To be assigned and accessed on
166 // the UI thread, but must be posted to the network thread to call it. 166 // the UI thread, but must be posted to the network thread to call it.
167 protocol::SecretFetchedCallback pin_callback_; 167 protocol::SecretFetchedCallback pin_callback_;
(...skipping 20 matching lines...) Expand all
188 friend class base::RefCountedThreadSafe<ChromotingJniInstance>; 188 friend class base::RefCountedThreadSafe<ChromotingJniInstance>;
189 189
190 base::WeakPtrFactory<ChromotingJniInstance> weak_factory_; 190 base::WeakPtrFactory<ChromotingJniInstance> weak_factory_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance); 192 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance);
193 }; 193 };
194 194
195 } // namespace remoting 195 } // namespace remoting
196 196
197 #endif 197 #endif
OLDNEW
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/plugin/pepper_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698