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

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: Rebase Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/media/cast_transport_host_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 std::unique_ptr<content::PowerSaveBlocker> power_save_blocker_; 96 std::unique_ptr<content::PowerSaveBlocker> power_save_blocker_;
104 97
105 base::WeakPtrFactory<CastTransportHostFilter> weak_factory_; 98 base::WeakPtrFactory<CastTransportHostFilter> weak_factory_;
106 99
107 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter); 100 DISALLOW_COPY_AND_ASSIGN(CastTransportHostFilter);
108 }; 101 };
109 102
110 } // namespace cast 103 } // namespace cast
111 104
112 #endif // CHROME_BROWSER_MEDIA_CAST_TRANSPORT_HOST_FILTER_H_ 105 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698