Chromium Code Reviews| 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 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| 6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_rect.h" | 14 #include "ppapi/c/pp_rect.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/cpp/instance.h" | 16 #include "ppapi/cpp/instance.h" |
| 17 #include "ppapi/cpp/text_input_controller.h" | 17 #include "ppapi/cpp/text_input_controller.h" |
| 18 #include "ppapi/cpp/var.h" | 18 #include "ppapi/cpp/var.h" |
| 19 #include "remoting/client/client_context.h" | 19 #include "remoting/client/client_context.h" |
| 20 #include "remoting/client/client_user_interface.h" | 20 #include "remoting/client/client_user_interface.h" |
| 21 #include "remoting/client/empty_cursor_filter.h" | 21 #include "remoting/client/empty_cursor_filter.h" |
| 22 #include "remoting/client/key_event_mapper.h" | 22 #include "remoting/client/key_event_mapper.h" |
| 23 #include "remoting/client/plugin/main_plugin_thread_task_runner.h" | |
| 23 #include "remoting/client/plugin/pepper_cursor_setter.h" | 24 #include "remoting/client/plugin/pepper_cursor_setter.h" |
| 24 #include "remoting/client/plugin/pepper_input_handler.h" | 25 #include "remoting/client/plugin/pepper_input_handler.h" |
| 25 #include "remoting/client/plugin/pepper_plugin_thread_delegate.h" | |
| 26 #include "remoting/client/plugin/pepper_video_renderer.h" | 26 #include "remoting/client/plugin/pepper_video_renderer.h" |
| 27 #include "remoting/client/touch_input_scaler.h" | 27 #include "remoting/client/touch_input_scaler.h" |
| 28 #include "remoting/proto/event.pb.h" | 28 #include "remoting/proto/event.pb.h" |
| 29 #include "remoting/protocol/client_stub.h" | 29 #include "remoting/protocol/client_stub.h" |
| 30 #include "remoting/protocol/clipboard_stub.h" | 30 #include "remoting/protocol/clipboard_stub.h" |
| 31 #include "remoting/protocol/connection_to_host.h" | 31 #include "remoting/protocol/connection_to_host.h" |
| 32 #include "remoting/protocol/cursor_shape_stub.h" | 32 #include "remoting/protocol/cursor_shape_stub.h" |
| 33 #include "remoting/protocol/input_event_tracker.h" | 33 #include "remoting/protocol/input_event_tracker.h" |
| 34 #include "remoting/protocol/mouse_input_filter.h" | 34 #include "remoting/protocol/mouse_input_filter.h" |
| 35 #include "remoting/protocol/negotiating_client_authenticator.h" | 35 #include "remoting/protocol/negotiating_client_authenticator.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 bool IsConnected(); | 236 bool IsConnected(); |
| 237 | 237 |
| 238 // Used as the |FetchSecretCallback| for Me2Me connections. | 238 // Used as the |FetchSecretCallback| for Me2Me connections. |
| 239 // Uses the PIN request dialog in the webapp to obtain the shared secret. | 239 // Uses the PIN request dialog in the webapp to obtain the shared secret. |
| 240 void FetchSecretFromDialog( | 240 void FetchSecretFromDialog( |
| 241 bool pairing_supported, | 241 bool pairing_supported, |
| 242 const protocol::SecretFetchedCallback& secret_fetched_callback); | 242 const protocol::SecretFetchedCallback& secret_fetched_callback); |
| 243 | 243 |
| 244 bool initialized_; | 244 bool initialized_; |
| 245 | 245 |
| 246 PepperPluginThreadDelegate plugin_thread_delegate_; | 246 scoped_refptr<MainPluginThreadTaskRunner> plugin_task_runner_; |
|
Wez
2015/10/20 23:05:48
Does the ChromotingInstance need to know that this
Sergey Ulanov
2015/10/20 23:28:05
Done.
| |
| 247 scoped_refptr<PluginThreadTaskRunner> plugin_task_runner_; | |
| 248 scoped_ptr<base::ThreadTaskRunnerHandle> thread_task_runner_handle_; | 247 scoped_ptr<base::ThreadTaskRunnerHandle> thread_task_runner_handle_; |
| 249 scoped_ptr<jingle_glue::JingleThreadWrapper> thread_wrapper_; | 248 scoped_ptr<jingle_glue::JingleThreadWrapper> thread_wrapper_; |
| 250 ClientContext context_; | 249 ClientContext context_; |
| 251 protocol::PerformanceTracker perf_tracker_; | 250 protocol::PerformanceTracker perf_tracker_; |
| 252 scoped_ptr<PepperVideoRenderer> video_renderer_; | 251 scoped_ptr<PepperVideoRenderer> video_renderer_; |
| 253 pp::View plugin_view_; | 252 pp::View plugin_view_; |
| 254 | 253 |
| 255 // Contains the most-recently-reported desktop shape, if any. | 254 // Contains the most-recently-reported desktop shape, if any. |
| 256 scoped_ptr<webrtc::DesktopRegion> desktop_shape_; | 255 scoped_ptr<webrtc::DesktopRegion> desktop_shape_; |
| 257 | 256 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 291 | 290 |
| 292 // Weak reference to this instance, used for global logging and task posting. | 291 // Weak reference to this instance, used for global logging and task posting. |
| 293 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 292 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
| 294 | 293 |
| 295 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 294 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
| 296 }; | 295 }; |
| 297 | 296 |
| 298 } // namespace remoting | 297 } // namespace remoting |
| 299 | 298 |
| 300 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 299 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| OLD | NEW |