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