|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| audio/ | H | 12-Nov-2020 | - | 2,686 | 1,925 |
| audio_codecs/ | H | 12-Nov-2020 | - | 5,295 | 3,459 |
| call/ | H | 12-Nov-2020 | - | 217 | 96 |
| crypto/ | H | 12-Nov-2020 | - | 347 | 175 |
| neteq/ | H | 12-Nov-2020 | - | 1,160 | 626 |
| rtc_event_log/ | H | 12-Nov-2020 | - | 348 | 186 |
| stats/ | H | 12-Nov-2020 | - | 1,225 | 771 |
| task_queue/ | H | 12-Nov-2020 | - | 801 | 466 |
| test/ | H | 12-Nov-2020 | - | 5,679 | 3,384 |
| transport/ | H | 12-Nov-2020 | - | 6,604 | 4,494 |
| units/ | H | 12-Nov-2020 | - | 1,708 | 1,297 |
| video/ | H | 12-Nov-2020 | - | 4,848 | 3,051 |
| video_codecs/ | H | 12-Nov-2020 | - | 5,061 | 3,366 |
| voip/ | H | 12-Nov-2020 | - | 297 | 98 |
| BUILD.gn | H A D | 07-Nov-2020 | 24.6 KiB | 1,048 | 944 |
| DEPS | H A D | 07-Nov-2020 | 6.2 KiB | 310 | 258 |
| DESIGN.md | H A D | 07-Nov-2020 | 3.1 KiB | 72 | 57 |
| OWNERS | H A D | 07-Nov-2020 | 273 | 15 | 12 |
| README.md | H A D | 07-Nov-2020 | 1.2 KiB | 25 | 19 |
| array_view.h | H A D | 07-Nov-2020 | 11.8 KiB | 316 | 162 |
| array_view_unittest.cc | H A D | 07-Nov-2020 | 17.9 KiB | 579 | 461 |
| async_resolver_factory.h | H A D | 07-Nov-2020 | 1 KiB | 33 | 12 |
| audio_options.cc | H A D | 07-Nov-2020 | 5.5 KiB | 134 | 113 |
| audio_options.h | H A D | 07-Nov-2020 | 3.5 KiB | 86 | 39 |
| candidate.cc | H A D | 07-Nov-2020 | 5.4 KiB | 144 | 99 |
| candidate.h | H A D | 07-Nov-2020 | 7.5 KiB | 206 | 123 |
| create_peerconnection_factory.cc | H A D | 07-Nov-2020 | 2.9 KiB | 69 | 51 |
| create_peerconnection_factory.h | H A D | 07-Nov-2020 | 2 KiB | 55 | 30 |
| crypto_params.h | H A D | 07-Nov-2020 | 1.2 KiB | 42 | 21 |
| data_channel_interface.cc | H A D | 07-Nov-2020 | 1 KiB | 44 | 24 |
| data_channel_interface.h | H A D | 07-Nov-2020 | 7.1 KiB | 193 | 86 |
| dtls_transport_interface.cc | H A D | 07-Nov-2020 | 2 KiB | 56 | 38 |
| dtls_transport_interface.h | H A D | 07-Nov-2020 | 4.1 KiB | 109 | 65 |
| dtmf_sender_interface.h | H A D | 07-Nov-2020 | 5.2 KiB | 126 | 41 |
| fec_controller.h | H A D | 07-Nov-2020 | 3.7 KiB | 93 | 44 |
| fec_controller_override.h | H A D | 07-Nov-2020 | 840 | 29 | 11 |
| frame_transformer_interface.h | H A D | 07-Nov-2020 | 4.6 KiB | 118 | 55 |
| function_view.h | H A D | 07-Nov-2020 | 4.6 KiB | 131 | 64 |
| function_view_unittest.cc | H A D | 07-Nov-2020 | 4.6 KiB | 177 | 133 |
| ice_transport_factory.cc | H A D | 07-Nov-2020 | 2 KiB | 67 | 41 |
| ice_transport_factory.h | H A D | 07-Nov-2020 | 1.7 KiB | 48 | 15 |
| ice_transport_interface.h | H A D | 07-Nov-2020 | 3.6 KiB | 96 | 52 |
| jsep.cc | H A D | 07-Nov-2020 | 1.8 KiB | 58 | 40 |
| jsep.h | H A D | 07-Nov-2020 | 9.4 KiB | 248 | 106 |
| jsep_ice_candidate.cc | H A D | 07-Nov-2020 | 2.1 KiB | 77 | 51 |
| jsep_ice_candidate.h | H A D | 07-Nov-2020 | 2.8 KiB | 88 | 48 |
| jsep_session_description.h | H A D | 07-Nov-2020 | 3.1 KiB | 91 | 60 |
| media_stream_interface.cc | H A D | 07-Nov-2020 | 1 KiB | 39 | 21 |
| media_stream_interface.h | H A D | 07-Nov-2020 | 12.7 KiB | 343 | 164 |
| media_stream_proxy.h | H A D | 07-Nov-2020 | 1.5 KiB | 45 | 26 |
| media_stream_track_proxy.h | H A D | 07-Nov-2020 | 2.3 KiB | 66 | 41 |
| media_types.cc | H A D | 07-Nov-2020 | 944 | 36 | 19 |
| media_types.h | H A D | 07-Nov-2020 | 1 KiB | 40 | 15 |
| network_state_predictor.h | H A D | 07-Nov-2020 | 1.7 KiB | 57 | 26 |
| notifier.h | H A D | 07-Nov-2020 | 1.7 KiB | 61 | 35 |
| packet_socket_factory.h | H A D | 07-Nov-2020 | 2.5 KiB | 82 | 50 |
| peer_connection_factory_proxy.h | H A D | 07-Nov-2020 | 2.4 KiB | 66 | 47 |
| peer_connection_interface.cc | H A D | 07-Nov-2020 | 4.3 KiB | 122 | 82 |
| peer_connection_interface.h | H A D | 07-Nov-2020 | 66.1 KiB | 1,491 | 533 |
| peer_connection_proxy.h | H A D | 07-Nov-2020 | 6.1 KiB | 147 | 128 |
| proxy.cc | H A D | 07-Nov-2020 | 1 KiB | 38 | 21 |
| proxy.h | H A D | 07-Nov-2020 | 16.2 KiB | 402 | 283 |
| ref_counted_base.h | H A D | 07-Nov-2020 | 1.1 KiB | 44 | 25 |
| rtc_error.cc | H A D | 07-Nov-2020 | 2 KiB | 81 | 57 |
| rtc_error.h | H A D | 07-Nov-2020 | 11.5 KiB | 332 | 137 |
| rtc_error_unittest.cc | H A D | 07-Nov-2020 | 7.3 KiB | 243 | 167 |
| rtc_event_log_output.h | H A D | 07-Nov-2020 | 1.5 KiB | 43 | 13 |
| rtc_event_log_output_file.cc | H A D | 07-Nov-2020 | 3 KiB | 86 | 50 |
| rtc_event_log_output_file.h | H A D | 07-Nov-2020 | 1.8 KiB | 59 | 26 |
| rtc_event_log_output_file_unittest.cc | H A D | 07-Nov-2020 | 5.9 KiB | 166 | 111 |
| rtp_headers.cc | H A D | 07-Nov-2020 | 1.7 KiB | 57 | 38 |
| rtp_headers.h | H A D | 07-Nov-2020 | 7 KiB | 196 | 101 |
| rtp_packet_info.cc | H A D | 07-Nov-2020 | 2.5 KiB | 73 | 51 |
| rtp_packet_info.h | H A D | 07-Nov-2020 | 3.5 KiB | 107 | 61 |
| rtp_packet_info_unittest.cc | H A D | 07-Nov-2020 | 3.7 KiB | 180 | 113 |
| rtp_packet_infos.h | H A D | 07-Nov-2020 | 4.2 KiB | 131 | 84 |
| rtp_packet_infos_unittest.cc | H A D | 07-Nov-2020 | 2.4 KiB | 86 | 53 |
| rtp_parameters.cc | H A D | 07-Nov-2020 | 8.6 KiB | 217 | 174 |
| rtp_parameters.h | H A D | 07-Nov-2020 | 25.3 KiB | 665 | 293 |
| rtp_parameters_unittest.cc | H A D | 07-Nov-2020 | 1.7 KiB | 51 | 31 |
| rtp_receiver_interface.cc | H A D | 07-Nov-2020 | 1.2 KiB | 45 | 25 |
| rtp_receiver_interface.h | H A D | 07-Nov-2020 | 6.3 KiB | 150 | 69 |
| rtp_sender_interface.cc | H A D | 07-Nov-2020 | 1 KiB | 37 | 19 |
| rtp_sender_interface.h | H A D | 07-Nov-2020 | 5.5 KiB | 134 | 64 |
| rtp_transceiver_direction.h | H A D | 07-Nov-2020 | 753 | 28 | 12 |
| rtp_transceiver_interface.cc | H A D | 07-Nov-2020 | 1.2 KiB | 45 | 24 |
| rtp_transceiver_interface.h | H A D | 07-Nov-2020 | 6.3 KiB | 143 | 45 |
| scoped_refptr.h | H A D | 07-Nov-2020 | 4.2 KiB | 165 | 73 |
| scoped_refptr_unittest.cc | H A D | 07-Nov-2020 | 2.9 KiB | 112 | 79 |
| sctp_transport_interface.cc | H A D | 07-Nov-2020 | 1 KiB | 33 | 16 |
| sctp_transport_interface.h | H A D | 07-Nov-2020 | 3.4 KiB | 91 | 51 |
| set_remote_description_observer_interface.h | H A D | 07-Nov-2020 | 1.1 KiB | 32 | 11 |
| stats_types.cc | H A D | 07-Nov-2020 | 26.8 KiB | 848 | 719 |
| stats_types.h | H A D | 07-Nov-2020 | 15.8 KiB | 456 | 310 |
| turn_customizer.h | H A D | 07-Nov-2020 | 1.4 KiB | 46 | 21 |
| uma_metrics.h | H A D | 07-Nov-2020 | 5.3 KiB | 160 | 99 |
| video_track_source_proxy.h | H A D | 07-Nov-2020 | 1.9 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