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 "base/macros.h" |
8 #include "chrome/renderer/media/cast_receiver_audio_valve.h" | 9 #include "chrome/renderer/media/cast_receiver_audio_valve.h" |
9 #include "chrome/renderer/media/cast_session_delegate.h" | 10 #include "chrome/renderer/media/cast_session_delegate.h" |
10 #include "content/public/renderer/media_stream_video_sink.h" | 11 #include "content/public/renderer/media_stream_video_sink.h" |
11 #include "media/base/video_capture_types.h" | 12 #include "media/base/video_capture_types.h" |
12 #include "media/cast/cast_receiver.h" | 13 #include "media/cast/cast_receiver.h" |
13 | 14 |
14 class CastReceiverSessionDelegate : public CastSessionDelegateBase { | 15 class CastReceiverSessionDelegate : public CastSessionDelegateBase { |
15 public: | 16 public: |
16 typedef base::Callback<void(const std::string&)> ErrorCallback; | 17 typedef base::Callback<void(const std::string&)> ErrorCallback; |
17 | 18 |
(...skipping 29 matching lines...) Expand all Loading... |
47 content::VideoCaptureDeliverFrameCB frame_callback_; | 48 content::VideoCaptureDeliverFrameCB frame_callback_; |
48 media::cast::AudioFrameDecodedCallback on_audio_decoded_cb_; | 49 media::cast::AudioFrameDecodedCallback on_audio_decoded_cb_; |
49 media::cast::VideoFrameDecodedCallback on_video_decoded_cb_; | 50 media::cast::VideoFrameDecodedCallback on_video_decoded_cb_; |
50 scoped_ptr<media::cast::CastReceiver> cast_receiver_; | 51 scoped_ptr<media::cast::CastReceiver> cast_receiver_; |
51 media::VideoCaptureFormat format_; | 52 media::VideoCaptureFormat format_; |
52 base::WeakPtrFactory<CastReceiverSessionDelegate> weak_factory_; | 53 base::WeakPtrFactory<CastReceiverSessionDelegate> weak_factory_; |
53 DISALLOW_COPY_AND_ASSIGN(CastReceiverSessionDelegate); | 54 DISALLOW_COPY_AND_ASSIGN(CastReceiverSessionDelegate); |
54 }; | 55 }; |
55 | 56 |
56 #endif // CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_DELEGATE_H_ | 57 #endif // CHROME_RENDERER_MEDIA_CAST_RECEIVER_SESSION_DELEGATE_H_ |
OLD | NEW |