| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 scoped_refptr<media::cast::CastEnvironment> cast_environment_; | 65 scoped_refptr<media::cast::CastEnvironment> cast_environment_; |
| 66 scoped_ptr<media::cast::CastSender> cast_sender_; | 66 scoped_ptr<media::cast::CastSender> cast_sender_; |
| 67 | 67 |
| 68 // Utilities threads owned by this class. They are used by CastSender for | 68 // Utilities threads owned by this class. They are used by CastSender for |
| 69 // encoding. | 69 // encoding. |
| 70 // TODO(hclam): See crbug.com/317006 for more details. | 70 // TODO(hclam): See crbug.com/317006 for more details. |
| 71 // This class shouldn't create and own threads. | 71 // This class shouldn't create and own threads. |
| 72 base::Thread audio_encode_thread_; | 72 base::Thread audio_encode_thread_; |
| 73 base::Thread video_encode_thread_; | 73 base::Thread video_encode_thread_; |
| 74 | 74 |
| 75 // Clock used by CastSender. | |
| 76 base::DefaultTickClock clock_; | |
| 77 | |
| 78 // Configuration for audio and video. | 75 // Configuration for audio and video. |
| 79 media::cast::AudioSenderConfig audio_config_; | 76 media::cast::AudioSenderConfig audio_config_; |
| 80 media::cast::VideoSenderConfig video_config_; | 77 media::cast::VideoSenderConfig video_config_; |
| 81 bool audio_configured_; | 78 bool audio_configured_; |
| 82 bool video_configured_; | 79 bool video_configured_; |
| 83 std::vector<FrameInputAvailableCallback> frame_input_available_callbacks_; | 80 std::vector<FrameInputAvailableCallback> frame_input_available_callbacks_; |
| 84 SendPacketCallback send_packet_callback_; | 81 SendPacketCallback send_packet_callback_; |
| 85 | 82 |
| 86 // Proxy to the IO message loop. | 83 // Proxy to the IO message loop. |
| 87 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 84 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
| 88 | 85 |
| 89 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); | 86 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); |
| 90 }; | 87 }; |
| 91 | 88 |
| 92 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 89 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
| OLD | NEW |