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

Side by Side Diff: remoting/client/plugin/chromoting_instance.h

Issue 136763009: Add VideoProcessor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // TODO(ajwong): We need to come up with a better description of the 5 // TODO(ajwong): We need to come up with a better description of the
6 // responsibilities for each thread. 6 // responsibilities for each thread.
7 7
8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class ChromotingStats; 55 class ChromotingStats;
56 class ClientContext; 56 class ClientContext;
57 class DelegatingSignalStrategy; 57 class DelegatingSignalStrategy;
58 class FrameConsumer; 58 class FrameConsumer;
59 class FrameConsumerProxy; 59 class FrameConsumerProxy;
60 class PepperAudioPlayer; 60 class PepperAudioPlayer;
61 class PepperTokenFetcher; 61 class PepperTokenFetcher;
62 class PepperView; 62 class PepperView;
63 class RectangleUpdateDecoder; 63 class RectangleUpdateDecoder;
64 class SignalStrategy; 64 class SignalStrategy;
65 class VideoRenderer;
65 66
66 struct ClientConfig; 67 struct ClientConfig;
67 68
68 class ChromotingInstance : 69 class ChromotingInstance :
69 public ClientUserInterface, 70 public ClientUserInterface,
70 public protocol::ClipboardStub, 71 public protocol::ClipboardStub,
71 public protocol::CursorShapeStub, 72 public protocol::CursorShapeStub,
72 public pp::Instance { 73 public pp::Instance {
73 public: 74 public:
74 // Plugin API version. This should be incremented whenever the API 75 // Plugin API version. This should be incremented whenever the API
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Uses the PIN request dialog in the webapp to obtain the shared secret. 233 // Uses the PIN request dialog in the webapp to obtain the shared secret.
233 void FetchSecretFromDialog( 234 void FetchSecretFromDialog(
234 bool pairing_supported, 235 bool pairing_supported,
235 const protocol::SecretFetchedCallback& secret_fetched_callback); 236 const protocol::SecretFetchedCallback& secret_fetched_callback);
236 237
237 bool initialized_; 238 bool initialized_;
238 239
239 PepperPluginThreadDelegate plugin_thread_delegate_; 240 PepperPluginThreadDelegate plugin_thread_delegate_;
240 scoped_refptr<PluginThreadTaskRunner> plugin_task_runner_; 241 scoped_refptr<PluginThreadTaskRunner> plugin_task_runner_;
241 ClientContext context_; 242 ClientContext context_;
242 scoped_refptr<RectangleUpdateDecoder> rectangle_decoder_; 243 scoped_ptr<VideoRenderer> video_renderer_;
243 scoped_ptr<PepperView> view_; 244 scoped_ptr<PepperView> view_;
244 scoped_ptr<base::WeakPtrFactory<FrameConsumer> > view_weak_factory_; 245 scoped_ptr<base::WeakPtrFactory<FrameConsumer> > view_weak_factory_;
245 pp::View plugin_view_; 246 pp::View plugin_view_;
246 247
247 // Contains the most-recently-reported desktop shape, if any. 248 // Contains the most-recently-reported desktop shape, if any.
248 scoped_ptr<webrtc::DesktopRegion> desktop_shape_; 249 scoped_ptr<webrtc::DesktopRegion> desktop_shape_;
249 250
250 scoped_ptr<DelegatingSignalStrategy> signal_strategy_; 251 scoped_ptr<DelegatingSignalStrategy> signal_strategy_;
251 252
252 scoped_ptr<protocol::ConnectionToHost> host_connection_; 253 scoped_ptr<protocol::ConnectionToHost> host_connection_;
(...skipping 14 matching lines...) Expand all
267 268
268 // Weak reference to this instance, used for global logging and task posting. 269 // Weak reference to this instance, used for global logging and task posting.
269 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 270 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
270 271
271 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 272 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
272 }; 273 };
273 274
274 } // namespace remoting 275 } // namespace remoting
275 276
276 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 277 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « remoting/client/jni/jni_frame_consumer.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698