| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
| 6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void StartSendingInternal(); | 71 void StartSendingInternal(); |
| 72 | 72 |
| 73 void StatusNotificationCB( | 73 void StatusNotificationCB( |
| 74 media::cast::transport::CastTransportStatus status); | 74 media::cast::transport::CastTransportStatus status); |
| 75 | 75 |
| 76 base::ThreadChecker thread_checker_; | 76 base::ThreadChecker thread_checker_; |
| 77 scoped_refptr<media::cast::CastEnvironment> cast_environment_; | 77 scoped_refptr<media::cast::CastEnvironment> cast_environment_; |
| 78 scoped_ptr<media::cast::CastSender> cast_sender_; | 78 scoped_ptr<media::cast::CastSender> cast_sender_; |
| 79 scoped_ptr<media::cast::transport::CastTransportSender> cast_transport_; | 79 scoped_ptr<media::cast::transport::CastTransportSender> cast_transport_; |
| 80 | 80 |
| 81 // Utilities threads owned by this class. They are used by CastSender for | |
| 82 // encoding. | |
| 83 // TODO(hclam): See crbug.com/317006 for more details. | |
| 84 // This class shouldn't create and own threads. | |
| 85 base::Thread audio_encode_thread_; | |
| 86 base::Thread video_encode_thread_; | |
| 87 | |
| 88 // Configuration for audio and video. | 81 // Configuration for audio and video. |
| 89 scoped_ptr<media::cast::AudioSenderConfig> audio_config_; | 82 scoped_ptr<media::cast::AudioSenderConfig> audio_config_; |
| 90 scoped_ptr<media::cast::VideoSenderConfig> video_config_; | 83 scoped_ptr<media::cast::VideoSenderConfig> video_config_; |
| 91 | 84 |
| 92 FrameInputAvailableCallback audio_frame_input_available_callback_; | 85 FrameInputAvailableCallback audio_frame_input_available_callback_; |
| 93 FrameInputAvailableCallback video_frame_input_available_callback_; | 86 FrameInputAvailableCallback video_frame_input_available_callback_; |
| 94 | 87 |
| 95 net::IPEndPoint local_endpoint_; | 88 net::IPEndPoint local_endpoint_; |
| 96 net::IPEndPoint remote_endpoint_; | 89 net::IPEndPoint remote_endpoint_; |
| 97 bool transport_configured_; | 90 bool transport_configured_; |
| 98 | 91 |
| 99 // Proxy to the IO message loop. | 92 // Proxy to the IO message loop. |
| 100 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 93 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
| 101 | 94 |
| 102 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); | 95 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); |
| 103 }; | 96 }; |
| 104 | 97 |
| 105 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 98 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
| OLD | NEW |