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

Side by Side Diff: talk/session/media/bundlefilter.h

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 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 | « talk/session/media/audiomonitor.cc ('k') | talk/session/media/bundlefilter.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 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Determines packet belongs to valid cricket::BaseChannel. 53 // Determines packet belongs to valid cricket::BaseChannel.
54 bool DemuxPacket(const char* data, size_t len, bool rtcp); 54 bool DemuxPacket(const char* data, size_t len, bool rtcp);
55 55
56 // Adds the supported payload type. 56 // Adds the supported payload type.
57 void AddPayloadType(int payload_type); 57 void AddPayloadType(int payload_type);
58 58
59 // Adding a valid source to the filter. 59 // Adding a valid source to the filter.
60 bool AddStream(const StreamParams& stream); 60 bool AddStream(const StreamParams& stream);
61 61
62 // Removes source from the filter. 62 // Removes source from the filter.
63 bool RemoveStream(uint32 ssrc); 63 bool RemoveStream(uint32_t ssrc);
64 64
65 // Utility methods added for unitest. 65 // Utility methods added for unitest.
66 // True if |streams_| is not empty. 66 // True if |streams_| is not empty.
67 bool HasStreams() const; 67 bool HasStreams() const;
68 bool FindStream(uint32 ssrc) const; 68 bool FindStream(uint32_t ssrc) const;
69 bool FindPayloadType(int pl_type) const; 69 bool FindPayloadType(int pl_type) const;
70 void ClearAllPayloadTypes(); 70 void ClearAllPayloadTypes();
71 71
72 72
73 private: 73 private:
74 std::set<int> payload_types_; 74 std::set<int> payload_types_;
75 std::vector<StreamParams> streams_; 75 std::vector<StreamParams> streams_;
76 }; 76 };
77 77
78 } // namespace cricket 78 } // namespace cricket
79 79
80 #endif // TALK_SESSION_MEDIA_BUNDLEFILTER_H_ 80 #endif // TALK_SESSION_MEDIA_BUNDLEFILTER_H_
OLDNEW
« no previous file with comments | « talk/session/media/audiomonitor.cc ('k') | talk/session/media/bundlefilter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698