|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 21-Oct-2021 | - |
| adaptation/ | H | 21-Oct-2021 | - | 134 | 75 |
| audio/ | H | 21-Oct-2021 | - | 2,823 | 1,995 |
| audio_codecs/ | H | 21-Oct-2021 | - | 5,326 | 3,489 |
| call/ | H | 21-Oct-2021 | - | 218 | 97 |
| crypto/ | H | 21-Oct-2021 | - | 345 | 175 |
| neteq/ | H | 21-Oct-2021 | - | 1,169 | 628 |
| numerics/ | H | 21-Oct-2021 | - | 491 | 334 |
| rtc_event_log/ | H | 21-Oct-2021 | - | 354 | 192 |
| stats/ | H | 21-Oct-2021 | - | 1,298 | 838 |
| task_queue/ | H | 21-Oct-2021 | - | 819 | 472 |
| test/ | H | 21-Oct-2021 | - | 5,753 | 3,335 |
| transport/ | H | 21-Oct-2021 | - | 5,771 | 4,199 |
| units/ | H | 21-Oct-2021 | - | 1,708 | 1,297 |
| video/ | H | 21-Oct-2021 | - | 5,745 | 3,660 |
| video_codecs/ | H | 21-Oct-2021 | - | 5,427 | 3,633 |
| voip/ | H | 21-Oct-2021 | - | 954 | 439 |
| BUILD.gn | H A D | 21-Oct-2021 | 26.4 KiB | 1,114 | 1,004 |
| DEPS | H A D | 21-Oct-2021 | 6.3 KiB | 317 | 264 |
| DESIGN.md | H A D | 21-Oct-2021 | 3.1 KiB | 72 | 57 |
| OWNERS | H A D | 21-Oct-2021 | 848 | 26 | 22 |
| README.md | H A D | 21-Oct-2021 | 1.2 KiB | 25 | 19 |
| array_view.h | H A D | 21-Oct-2021 | 12.2 KiB | 329 | 175 |
| array_view_unittest.cc | H A D | 21-Oct-2021 | 19.4 KiB | 631 | 503 |
| async_dns_resolver.h | H A D | 21-Oct-2021 | 3.1 KiB | 86 | 30 |
| async_resolver_factory.h | H A D | 21-Oct-2021 | 1 KiB | 33 | 12 |
| audio_options.cc | H A D | 21-Oct-2021 | 5.5 KiB | 134 | 113 |
| audio_options.h | H A D | 21-Oct-2021 | 3.6 KiB | 88 | 39 |
| candidate.cc | H A D | 21-Oct-2021 | 5.4 KiB | 144 | 99 |
| candidate.h | H A D | 21-Oct-2021 | 7.5 KiB | 206 | 123 |
| create_peerconnection_factory.cc | H A D | 21-Oct-2021 | 3.2 KiB | 74 | 56 |
| create_peerconnection_factory.h | H A D | 21-Oct-2021 | 2.1 KiB | 57 | 32 |
| crypto_params.h | H A D | 21-Oct-2021 | 1.2 KiB | 42 | 21 |
| data_channel_interface.cc | H A D | 21-Oct-2021 | 1 KiB | 44 | 24 |
| data_channel_interface.h | H A D | 21-Oct-2021 | 7.2 KiB | 198 | 89 |
| dtls_transport_interface.cc | H A D | 21-Oct-2021 | 2 KiB | 56 | 38 |
| dtls_transport_interface.h | H A D | 21-Oct-2021 | 4.1 KiB | 109 | 65 |
| dtmf_sender_interface.h | H A D | 21-Oct-2021 | 5.2 KiB | 126 | 41 |
| fec_controller.h | H A D | 21-Oct-2021 | 3.7 KiB | 93 | 44 |
| fec_controller_override.h | H A D | 21-Oct-2021 | 840 | 29 | 11 |
| frame_transformer_interface.h | H A D | 21-Oct-2021 | 3.5 KiB | 100 | 52 |
| function_view.h | H A D | 21-Oct-2021 | 4.6 KiB | 131 | 64 |
| function_view_unittest.cc | H A D | 21-Oct-2021 | 4.6 KiB | 177 | 133 |
| ice_transport_factory.cc | H A D | 21-Oct-2021 | 2.1 KiB | 68 | 42 |
| ice_transport_factory.h | H A D | 21-Oct-2021 | 1.7 KiB | 48 | 15 |
| ice_transport_interface.h | H A D | 21-Oct-2021 | 3.6 KiB | 96 | 52 |
| jsep.cc | H A D | 21-Oct-2021 | 1.8 KiB | 58 | 40 |
| jsep.h | H A D | 21-Oct-2021 | 9.7 KiB | 254 | 108 |
| jsep_ice_candidate.cc | H A D | 21-Oct-2021 | 2.1 KiB | 77 | 51 |
| jsep_ice_candidate.h | H A D | 21-Oct-2021 | 2.9 KiB | 90 | 50 |
| jsep_session_description.h | H A D | 21-Oct-2021 | 3.1 KiB | 92 | 60 |
| media_stream_interface.cc | H A D | 21-Oct-2021 | 1 KiB | 39 | 21 |
| media_stream_interface.h | H A D | 21-Oct-2021 | 12.6 KiB | 342 | 165 |
| media_stream_proxy.h | H A D | 21-Oct-2021 | 1.5 KiB | 45 | 26 |
| media_stream_track.h | H A D | 21-Oct-2021 | 1.8 KiB | 64 | 41 |
| media_stream_track_proxy.h | H A D | 21-Oct-2021 | 2.4 KiB | 66 | 41 |
| media_types.cc | H A D | 21-Oct-2021 | 1 KiB | 38 | 21 |
| media_types.h | H A D | 21-Oct-2021 | 1.1 KiB | 45 | 20 |
| network_state_predictor.h | H A D | 21-Oct-2021 | 1.7 KiB | 57 | 26 |
| notifier.h | H A D | 21-Oct-2021 | 1.7 KiB | 61 | 35 |
| packet_socket_factory.h | H A D | 21-Oct-2021 | 2.5 KiB | 82 | 50 |
| peer_connection_factory_proxy.h | H A D | 21-Oct-2021 | 2.6 KiB | 69 | 50 |
| peer_connection_interface.cc | H A D | 21-Oct-2021 | 3.7 KiB | 108 | 71 |
| peer_connection_interface.h | H A D | 21-Oct-2021 | 68.9 KiB | 1,532 | 539 |
| peer_connection_proxy.h | H A D | 21-Oct-2021 | 7.2 KiB | 165 | 139 |
| priority.h | H A D | 21-Oct-2021 | 639 | 27 | 11 |
| proxy.cc | H A D | 21-Oct-2021 | 434 | 13 | 1 |
| proxy.h | H A D | 21-Oct-2021 | 17.1 KiB | 424 | 300 |
| ref_counted_base.h | H A D | 21-Oct-2021 | 1.1 KiB | 44 | 25 |
| rtc_error.cc | H A D | 21-Oct-2021 | 2 KiB | 81 | 57 |
| rtc_error.h | H A D | 21-Oct-2021 | 11.6 KiB | 332 | 137 |
| rtc_error_unittest.cc | H A D | 21-Oct-2021 | 7.3 KiB | 243 | 167 |
| rtc_event_log_output.h | H A D | 21-Oct-2021 | 1.5 KiB | 43 | 13 |
| rtc_event_log_output_file.cc | H A D | 21-Oct-2021 | 3 KiB | 86 | 50 |
| rtc_event_log_output_file.h | H A D | 21-Oct-2021 | 1.8 KiB | 59 | 26 |
| rtc_event_log_output_file_unittest.cc | H A D | 21-Oct-2021 | 6 KiB | 168 | 112 |
| rtp_headers.cc | H A D | 21-Oct-2021 | 1.6 KiB | 55 | 36 |
| rtp_headers.h | H A D | 21-Oct-2021 | 6.7 KiB | 190 | 97 |
| rtp_packet_info.cc | H A D | 21-Oct-2021 | 2 KiB | 61 | 40 |
| rtp_packet_info.h | H A D | 21-Oct-2021 | 3.2 KiB | 98 | 54 |
| rtp_packet_info_unittest.cc | H A D | 21-Oct-2021 | 3.7 KiB | 180 | 113 |
| rtp_packet_infos.h | H A D | 21-Oct-2021 | 4.2 KiB | 131 | 84 |
| rtp_packet_infos_unittest.cc | H A D | 21-Oct-2021 | 2.4 KiB | 86 | 53 |
| rtp_parameters.cc | H A D | 21-Oct-2021 | 9.2 KiB | 233 | 189 |
| rtp_parameters.h | H A D | 21-Oct-2021 | 25.7 KiB | 670 | 292 |
| rtp_parameters_unittest.cc | H A D | 21-Oct-2021 | 1.7 KiB | 51 | 31 |
| rtp_receiver_interface.cc | H A D | 21-Oct-2021 | 1.2 KiB | 45 | 25 |
| rtp_receiver_interface.h | H A D | 21-Oct-2021 | 6.3 KiB | 149 | 68 |
| rtp_sender_interface.cc | H A D | 21-Oct-2021 | 1 KiB | 37 | 19 |
| rtp_sender_interface.h | H A D | 21-Oct-2021 | 5.5 KiB | 134 | 64 |
| rtp_transceiver_direction.h | H A D | 21-Oct-2021 | 753 | 28 | 12 |
| rtp_transceiver_interface.cc | H A D | 21-Oct-2021 | 2.3 KiB | 86 | 55 |
| rtp_transceiver_interface.h | H A D | 21-Oct-2021 | 8.3 KiB | 180 | 56 |
| scoped_refptr.h | H A D | 21-Oct-2021 | 4.2 KiB | 166 | 74 |
| scoped_refptr_unittest.cc | H A D | 21-Oct-2021 | 2.9 KiB | 112 | 79 |
| sctp_transport_interface.cc | H A D | 21-Oct-2021 | 1 KiB | 33 | 16 |
| sctp_transport_interface.h | H A D | 21-Oct-2021 | 3.6 KiB | 93 | 53 |
| sequence_checker.h | H A D | 21-Oct-2021 | 3.8 KiB | 117 | 27 |
| sequence_checker_unittest.cc | H A D | 21-Oct-2021 | 5 KiB | 175 | 125 |
| set_local_description_observer_interface.h | H A D | 21-Oct-2021 | 1.1 KiB | 31 | 11 |
| set_remote_description_observer_interface.h | H A D | 21-Oct-2021 | 1.1 KiB | 32 | 11 |
| stats_types.cc | H A D | 21-Oct-2021 | 26.8 KiB | 848 | 719 |
| stats_types.h | H A D | 21-Oct-2021 | 15.8 KiB | 456 | 310 |
| turn_customizer.h | H A D | 21-Oct-2021 | 1.4 KiB | 46 | 21 |
| uma_metrics.h | H A D | 21-Oct-2021 | 8.2 KiB | 212 | 116 |
| video_track_source_proxy.h | H A D | 21-Oct-2021 | 2 KiB | 50 | 30 |
README.md
1# How to write code in the `api/` directory
2
3Mostly, just follow the regular [style guide](../style-guide.md), but:
4
5* Note that `api/` code is not exempt from the “`.h` and `.cc` files come in
6 pairs” rule, so if you declare something in `api/path/to/foo.h`, it should be
7 defined in `api/path/to/foo.cc`.
8* Headers in `api/` should, if possible, not `#include` headers outside `api/`.
9 It’s not always possible to avoid this, but be aware that it adds to a small
10 mountain of technical debt that we’re trying to shrink.
11* `.cc` files in `api/`, on the other hand, are free to `#include` headers
12 outside `api/`.
13
14That is, the preferred way for `api/` code to access non-`api/` code is to call
15it from a `.cc` file, so that users of our API headers won’t transitively
16`#include` non-public headers.
17
18For headers in `api/` that need to refer to non-public types, forward
19declarations are often a lesser evil than including non-public header files. The
20usual [rules](../style-guide.md#forward-declarations) still apply, though.
21
22`.cc` files in `api/` should preferably be kept reasonably small. If a
23substantial implementation is needed, consider putting it with our non-public
24code, and just call it from the `api/` `.cc` file.
25