OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace pp { | 37 namespace pp { |
38 class InputEvent; | 38 class InputEvent; |
39 class Module; | 39 class Module; |
40 } // namespace pp | 40 } // namespace pp |
41 | 41 |
42 namespace remoting { | 42 namespace remoting { |
43 | 43 |
44 namespace protocol { | 44 namespace protocol { |
45 class ConnectionToHost; | 45 class ConnectionToHost; |
46 class KeyEventTracker; | 46 class InputEventTracker; |
47 } // namespace protocol | 47 } // namespace protocol |
48 | 48 |
49 class ChromotingClient; | 49 class ChromotingClient; |
50 class ChromotingScriptableObject; | 50 class ChromotingScriptableObject; |
51 class ChromotingStats; | 51 class ChromotingStats; |
52 class ClientContext; | 52 class ClientContext; |
53 class FrameConsumerProxy; | 53 class FrameConsumerProxy; |
54 class MouseInputFilter; | 54 class MouseInputFilter; |
55 class PepperInputHandler; | 55 class PepperInputHandler; |
56 class PepperView; | 56 class PepperView; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 PepperPluginThreadDelegate plugin_thread_delegate_; | 174 PepperPluginThreadDelegate plugin_thread_delegate_; |
175 scoped_refptr<PluginMessageLoopProxy> plugin_message_loop_; | 175 scoped_refptr<PluginMessageLoopProxy> plugin_message_loop_; |
176 ClientContext context_; | 176 ClientContext context_; |
177 scoped_ptr<protocol::ConnectionToHost> host_connection_; | 177 scoped_ptr<protocol::ConnectionToHost> host_connection_; |
178 scoped_ptr<PepperView> view_; | 178 scoped_ptr<PepperView> view_; |
179 | 179 |
180 scoped_refptr<FrameConsumerProxy> consumer_proxy_; | 180 scoped_refptr<FrameConsumerProxy> consumer_proxy_; |
181 scoped_refptr<RectangleUpdateDecoder> rectangle_decoder_; | 181 scoped_refptr<RectangleUpdateDecoder> rectangle_decoder_; |
182 scoped_ptr<MouseInputFilter> mouse_input_filter_; | 182 scoped_ptr<MouseInputFilter> mouse_input_filter_; |
183 scoped_ptr<protocol::KeyEventTracker> key_event_tracker_; | 183 scoped_ptr<protocol::InputEventTracker> input_tracker_; |
184 scoped_ptr<PepperInputHandler> input_handler_; | 184 scoped_ptr<PepperInputHandler> input_handler_; |
185 scoped_ptr<ChromotingClient> client_; | 185 scoped_ptr<ChromotingClient> client_; |
186 | 186 |
187 // XmppProxy is a refcounted interface used to perform thread-switching and | 187 // XmppProxy is a refcounted interface used to perform thread-switching and |
188 // detaching between objects whose lifetimes are controlled by pepper, and | 188 // detaching between objects whose lifetimes are controlled by pepper, and |
189 // jingle_glue objects. This is used when if we start a sandboxed jingle | 189 // jingle_glue objects. This is used when if we start a sandboxed jingle |
190 // connection. | 190 // connection. |
191 scoped_refptr<PepperXmppProxy> xmpp_proxy_; | 191 scoped_refptr<PepperXmppProxy> xmpp_proxy_; |
192 | 192 |
193 // JavaScript interface to control this instance. | 193 // JavaScript interface to control this instance. |
194 // This wraps a ChromotingScriptableObject in a pp::Var. | 194 // This wraps a ChromotingScriptableObject in a pp::Var. |
195 pp::Var instance_object_; | 195 pp::Var instance_object_; |
196 | 196 |
197 scoped_ptr<ScopedThreadProxy> thread_proxy_; | 197 scoped_ptr<ScopedThreadProxy> thread_proxy_; |
198 | 198 |
199 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 199 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
200 }; | 200 }; |
201 | 201 |
202 } // namespace remoting | 202 } // namespace remoting |
203 | 203 |
204 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 204 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
OLD | NEW |