| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 protected: | 87 protected: |
| 88 // Callback with the result of the initialization. | 88 // Callback with the result of the initialization. |
| 89 // If this callback is called with STATUS_INITIALIZED it will report back | 89 // If this callback is called with STATUS_INITIALIZED it will report back |
| 90 // to the sinks that it's ready to accept incoming audio / video frames. | 90 // to the sinks that it's ready to accept incoming audio / video frames. |
| 91 void InitializationResultCB( | 91 void InitializationResultCB( |
| 92 media::cast::CastInitializationStatus result) const; | 92 media::cast::CastInitializationStatus result) const; |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 void StatusNotificationCB( | 95 void StatusNotificationCB( |
| 96 media::cast::transport::CastTransportStatus status); | 96 media::cast::CastTransportStatus status); |
| 97 | 97 |
| 98 // Adds logs collected from transport on browser side. | 98 // Adds logs collected from transport on browser side. |
| 99 void LogRawEvents(const std::vector<media::cast::PacketEvent>& packet_events); | 99 void LogRawEvents(const std::vector<media::cast::PacketEvent>& packet_events); |
| 100 | 100 |
| 101 base::ThreadChecker thread_checker_; | 101 base::ThreadChecker thread_checker_; |
| 102 scoped_refptr<media::cast::CastEnvironment> cast_environment_; | 102 scoped_refptr<media::cast::CastEnvironment> cast_environment_; |
| 103 scoped_ptr<media::cast::CastSender> cast_sender_; | 103 scoped_ptr<media::cast::CastSender> cast_sender_; |
| 104 scoped_ptr<media::cast::transport::CastTransportSender> cast_transport_; | 104 scoped_ptr<media::cast::CastTransportSender> cast_transport_; |
| 105 | 105 |
| 106 AudioFrameInputAvailableCallback audio_frame_input_available_callback_; | 106 AudioFrameInputAvailableCallback audio_frame_input_available_callback_; |
| 107 VideoFrameInputAvailableCallback video_frame_input_available_callback_; | 107 VideoFrameInputAvailableCallback video_frame_input_available_callback_; |
| 108 | 108 |
| 109 scoped_ptr<media::cast::RawEventSubscriberBundle> event_subscribers_; | 109 scoped_ptr<media::cast::RawEventSubscriberBundle> event_subscribers_; |
| 110 | 110 |
| 111 // Proxy to the IO message loop. | 111 // Proxy to the IO message loop. |
| 112 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 112 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
| 113 base::WeakPtrFactory<CastSessionDelegate> weak_factory_; | 113 base::WeakPtrFactory<CastSessionDelegate> weak_factory_; |
| 114 | 114 |
| 115 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); | 115 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ | 118 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ |
| OLD | NEW |