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

Side by Side Diff: media/cast/rtp_receiver/rtp_parser/rtp_parser.h

Issue 143263024: Cast: Refactoring RtpReceiver to Clang format (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Responding to review Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
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 MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ 5 #ifndef MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_
6 #define MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ 6 #define MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_
7 7
8 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" 8 #include "media/cast/rtp_receiver/rtp_receiver_defines.h"
9 #include "media/cast/transport/cast_transport_defines.h" 9 #include "media/cast/transport/cast_transport_defines.h"
10 10
(...skipping 16 matching lines...) Expand all
27 int audio_channels; 27 int audio_channels;
28 }; 28 };
29 29
30 class RtpParser { 30 class RtpParser {
31 public: 31 public:
32 RtpParser(RtpData* incoming_payload_callback, 32 RtpParser(RtpData* incoming_payload_callback,
33 const RtpParserConfig parser_config); 33 const RtpParserConfig parser_config);
34 34
35 ~RtpParser(); 35 ~RtpParser();
36 36
37 bool ParsePacket(const uint8* packet, size_t length, 37 bool ParsePacket(const uint8* packet,
38 size_t length,
38 RtpCastHeader* rtp_header); 39 RtpCastHeader* rtp_header);
39 40
40 private: 41 private:
41 bool ParseCommon(const uint8* packet, size_t length, 42 bool ParseCommon(const uint8* packet,
43 size_t length,
42 RtpCastHeader* rtp_header); 44 RtpCastHeader* rtp_header);
43 45
44 bool ParseCast(const uint8* packet, size_t length, 46 bool ParseCast(const uint8* packet, size_t length, RtpCastHeader* rtp_header);
45 RtpCastHeader* rtp_header);
46 47
47 RtpData* data_callback_; 48 RtpData* data_callback_;
48 RtpParserConfig parser_config_; 49 RtpParserConfig parser_config_;
49 transport::FrameIdWrapHelper frame_id_wrap_helper_; 50 transport::FrameIdWrapHelper frame_id_wrap_helper_;
50 transport::FrameIdWrapHelper reference_frame_id_wrap_helper_; 51 transport::FrameIdWrapHelper reference_frame_id_wrap_helper_;
52
53 DISALLOW_COPY_AND_ASSIGN(RtpParser);
51 }; 54 };
52 55
53 } // namespace cast 56 } // namespace cast
54 } // namespace media 57 } // namespace media
55 58
56 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_ 59 #endif // MEDIA_CAST_RTP_RECEIVER_RTP_PARSER_RTP_PARSER_H_
OLDNEW
« no previous file with comments | « media/cast/rtp_receiver/rtp_parser/include/mock/mock_rtp_feedback.h ('k') | media/cast/rtp_receiver/rtp_parser/rtp_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698