OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_RECEIVER_SESSION_DELEGATE_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_DELEGATE_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_DELEGATE_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/renderer/media/cast_receiver_audio_valve.h" | 11 #include "chrome/renderer/media/cast_receiver_audio_valve.h" |
12 #include "chrome/renderer/media/cast_session_delegate.h" | 12 #include "chrome/renderer/media/cast_session_delegate.h" |
13 #include "content/public/renderer/media_stream_video_sink.h" | 13 #include "content/public/renderer/media_stream_video_sink.h" |
14 #include "media/base/video_capture_types.h" | 14 #include "media/capture/video_capture_types.h" |
15 #include "media/cast/cast_receiver.h" | 15 #include "media/cast/cast_receiver.h" |
16 | 16 |
17 class CastReceiverSessionDelegate : public CastSessionDelegateBase { | 17 class CastReceiverSessionDelegate : public CastSessionDelegateBase { |
18 public: | 18 public: |
19 typedef base::Callback<void(const std::string&)> ErrorCallback; | 19 typedef base::Callback<void(const std::string&)> ErrorCallback; |
20 | 20 |
21 CastReceiverSessionDelegate(); | 21 CastReceiverSessionDelegate(); |
22 ~CastReceiverSessionDelegate() override; | 22 ~CastReceiverSessionDelegate() override; |
23 | 23 |
24 void ReceivePacket(std::unique_ptr<media::cast::Packet> packet) override; | 24 void ReceivePacket(std::unique_ptr<media::cast::Packet> packet) override; |
(...skipping 25 matching lines...) Expand all Loading... |
50 content::VideoCaptureDeliverFrameCB frame_callback_; | 50 content::VideoCaptureDeliverFrameCB frame_callback_; |
51 media::cast::AudioFrameDecodedCallback on_audio_decoded_cb_; | 51 media::cast::AudioFrameDecodedCallback on_audio_decoded_cb_; |
52 media::cast::VideoFrameDecodedCallback on_video_decoded_cb_; | 52 media::cast::VideoFrameDecodedCallback on_video_decoded_cb_; |
53 std::unique_ptr<media::cast::CastReceiver> cast_receiver_; | 53 std::unique_ptr<media::cast::CastReceiver> cast_receiver_; |
54 media::VideoCaptureFormat format_; | 54 media::VideoCaptureFormat format_; |
55 base::WeakPtrFactory<CastReceiverSessionDelegate> weak_factory_; | 55 base::WeakPtrFactory<CastReceiverSessionDelegate> weak_factory_; |
56 DISALLOW_COPY_AND_ASSIGN(CastReceiverSessionDelegate); | 56 DISALLOW_COPY_AND_ASSIGN(CastReceiverSessionDelegate); |
57 }; | 57 }; |
58 | 58 |
59 #endif // CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_DELEGATE_H_ | 59 #endif // CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_DELEGATE_H_ |
OLD | NEW |