Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: chrome/browser/media/cast_transport_host_filter.h

Issue 1878883003: Refactor: simplify interface of SenderRtcpSession and CastTransport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_
6 #define CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ 6 #define CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 class CastTransportHostFilter : public content::BrowserMessageFilter { 28 class CastTransportHostFilter : public content::BrowserMessageFilter {
29 public: 29 public:
30 CastTransportHostFilter(); 30 CastTransportHostFilter();
31 31
32 private: 32 private:
33 ~CastTransportHostFilter() override; 33 ~CastTransportHostFilter() override;
34 34
35 // Status callback to create UdpTransport. 35 // Status callback to create UdpTransport.
36 void OnStatusChanged(int32_t channel_id, 36 void OnStatusChanged(int32_t channel_id,
37 media::cast::CastTransportStatus status); 37 media::cast::CastTransportStatus status);
38 void SendRtt(int32_t channel_id,
39 uint32_t rtp_sender_ssrc,
40 base::TimeDelta rtt);
41 void SendCastMessage(int32_t channel_id,
42 uint32_t rtp_sender_ssrc,
43 const media::cast::RtcpCastMessage& cast_message);
44 void SendReceivedPli(int32_t channel_id, uint32_t rtp_sender_ssrc);
45 38
46 // BrowserMessageFilter implementation. 39 // BrowserMessageFilter implementation.
47 bool OnMessageReceived(const IPC::Message& message) override; 40 bool OnMessageReceived(const IPC::Message& message) override;
48 41
49 // Forwarding functions. 42 // Forwarding functions.
50 void OnInitializeAudio(int32_t channel_id, 43 void OnInitializeAudio(int32_t channel_id,
51 const media::cast::CastTransportRtpConfig& config); 44 const media::cast::CastTransportRtpConfig& config);
52 void OnInitializeVideo(int32_t channel_id, 45 void OnInitializeVideo(int32_t channel_id,
53 const media::cast::CastTransportRtpConfig& config); 46 const media::cast::CastTransportRtpConfig& config);
54 void OnInsertFrame(int32_t channel_id, 47 void OnInsertFrame(int32_t channel_id,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 std::unique_ptr<content::PowerSaveBlocker> power_save_blocker_; 95 std::unique_ptr<content::PowerSaveBlocker> power_save_blocker_;
103 96
104 base::WeakPtrFactory<CastTransportHostFilter> weak_factory_; 97 base::WeakPtrFactory<CastTransportHostFilter> weak_factory_;
105 98
106 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter); 99 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter);
107 }; 100 };
108 101
109 } // namespace cast 102 } // namespace cast
110 103
111 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ 104 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/cast_transport_host_filter.cc » ('j') | media/cast/net/cast_transport.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698