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/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // Uses the PIN request dialog in the webapp to obtain the shared secret. | 249 // Uses the PIN request dialog in the webapp to obtain the shared secret. |
250 void FetchSecretFromDialog( | 250 void FetchSecretFromDialog( |
251 bool pairing_supported, | 251 bool pairing_supported, |
252 const protocol::SecretFetchedCallback& secret_fetched_callback); | 252 const protocol::SecretFetchedCallback& secret_fetched_callback); |
253 | 253 |
254 // MediaSourceVideoRenderer::Delegate implementation. | 254 // MediaSourceVideoRenderer::Delegate implementation. |
255 virtual void OnMediaSourceSize(const webrtc::DesktopSize& size, | 255 virtual void OnMediaSourceSize(const webrtc::DesktopSize& size, |
256 const webrtc::DesktopVector& dpi) OVERRIDE; | 256 const webrtc::DesktopVector& dpi) OVERRIDE; |
257 virtual void OnMediaSourceShape(const webrtc::DesktopRegion& shape) OVERRIDE; | 257 virtual void OnMediaSourceShape(const webrtc::DesktopRegion& shape) OVERRIDE; |
258 virtual void OnMediaSourceReset(const std::string& format) OVERRIDE; | 258 virtual void OnMediaSourceReset(const std::string& format) OVERRIDE; |
259 virtual void OnMediaSourceData(uint8_t* buffer, size_t buffer_size) OVERRIDE; | 259 virtual void OnMediaSourceData(uint8_t* buffer, size_t buffer_size, |
| 260 bool keyframe) OVERRIDE; |
260 | 261 |
261 bool initialized_; | 262 bool initialized_; |
262 | 263 |
263 PepperPluginThreadDelegate plugin_thread_delegate_; | 264 PepperPluginThreadDelegate plugin_thread_delegate_; |
264 scoped_refptr<PluginThreadTaskRunner> plugin_task_runner_; | 265 scoped_refptr<PluginThreadTaskRunner> plugin_task_runner_; |
265 scoped_ptr<base::ThreadTaskRunnerHandle> thread_task_runner_handle_; | 266 scoped_ptr<base::ThreadTaskRunnerHandle> thread_task_runner_handle_; |
266 scoped_ptr<jingle_glue::JingleThreadWrapper> thread_wrapper_; | 267 scoped_ptr<jingle_glue::JingleThreadWrapper> thread_wrapper_; |
267 ClientContext context_; | 268 ClientContext context_; |
268 scoped_ptr<VideoRenderer> video_renderer_; | 269 scoped_ptr<VideoRenderer> video_renderer_; |
269 scoped_ptr<PepperView> view_; | 270 scoped_ptr<PepperView> view_; |
(...skipping 28 matching lines...) Expand all Loading... |
298 | 299 |
299 // Weak reference to this instance, used for global logging and task posting. | 300 // Weak reference to this instance, used for global logging and task posting. |
300 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 301 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
301 | 302 |
302 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 303 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
303 }; | 304 }; |
304 | 305 |
305 } // namespace remoting | 306 } // namespace remoting |
306 | 307 |
307 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 308 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
OLD | NEW |