• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

audio/H12-Nov-2020-2,6861,925

audio_codecs/H12-Nov-2020-5,2953,459

call/H12-Nov-2020-21796

crypto/H12-Nov-2020-347175

neteq/H12-Nov-2020-1,160626

rtc_event_log/H12-Nov-2020-348186

stats/H12-Nov-2020-1,225771

task_queue/H12-Nov-2020-801466

test/H12-Nov-2020-5,6793,384

transport/H12-Nov-2020-6,6044,494

units/H12-Nov-2020-1,7081,297

video/H12-Nov-2020-4,8483,051

video_codecs/H12-Nov-2020-5,0613,366

voip/H12-Nov-2020-29798

BUILD.gnH A D07-Nov-202024.6 KiB1,048944

DEPSH A D07-Nov-20206.2 KiB310258

DESIGN.mdH A D07-Nov-20203.1 KiB7257

OWNERSH A D07-Nov-2020273 1512

README.mdH A D07-Nov-20201.2 KiB2519

array_view.hH A D07-Nov-202011.8 KiB316162

array_view_unittest.ccH A D07-Nov-202017.9 KiB579461

async_resolver_factory.hH A D07-Nov-20201 KiB3312

audio_options.ccH A D07-Nov-20205.5 KiB134113

audio_options.hH A D07-Nov-20203.5 KiB8639

candidate.ccH A D07-Nov-20205.4 KiB14499

candidate.hH A D07-Nov-20207.5 KiB206123

create_peerconnection_factory.ccH A D07-Nov-20202.9 KiB6951

create_peerconnection_factory.hH A D07-Nov-20202 KiB5530

crypto_params.hH A D07-Nov-20201.2 KiB4221

data_channel_interface.ccH A D07-Nov-20201 KiB4424

data_channel_interface.hH A D07-Nov-20207.1 KiB19386

dtls_transport_interface.ccH A D07-Nov-20202 KiB5638

dtls_transport_interface.hH A D07-Nov-20204.1 KiB10965

dtmf_sender_interface.hH A D07-Nov-20205.2 KiB12641

fec_controller.hH A D07-Nov-20203.7 KiB9344

fec_controller_override.hH A D07-Nov-2020840 2911

frame_transformer_interface.hH A D07-Nov-20204.6 KiB11855

function_view.hH A D07-Nov-20204.6 KiB13164

function_view_unittest.ccH A D07-Nov-20204.6 KiB177133

ice_transport_factory.ccH A D07-Nov-20202 KiB6741

ice_transport_factory.hH A D07-Nov-20201.7 KiB4815

ice_transport_interface.hH A D07-Nov-20203.6 KiB9652

jsep.ccH A D07-Nov-20201.8 KiB5840

jsep.hH A D07-Nov-20209.4 KiB248106

jsep_ice_candidate.ccH A D07-Nov-20202.1 KiB7751

jsep_ice_candidate.hH A D07-Nov-20202.8 KiB8848

jsep_session_description.hH A D07-Nov-20203.1 KiB9160

media_stream_interface.ccH A D07-Nov-20201 KiB3921

media_stream_interface.hH A D07-Nov-202012.7 KiB343164

media_stream_proxy.hH A D07-Nov-20201.5 KiB4526

media_stream_track_proxy.hH A D07-Nov-20202.3 KiB6641

media_types.ccH A D07-Nov-2020944 3619

media_types.hH A D07-Nov-20201 KiB4015

network_state_predictor.hH A D07-Nov-20201.7 KiB5726

notifier.hH A D07-Nov-20201.7 KiB6135

packet_socket_factory.hH A D07-Nov-20202.5 KiB8250

peer_connection_factory_proxy.hH A D07-Nov-20202.4 KiB6647

peer_connection_interface.ccH A D07-Nov-20204.3 KiB12282

peer_connection_interface.hH A D07-Nov-202066.1 KiB1,491533

peer_connection_proxy.hH A D07-Nov-20206.1 KiB147128

proxy.ccH A D07-Nov-20201 KiB3821

proxy.hH A D07-Nov-202016.2 KiB402283

ref_counted_base.hH A D07-Nov-20201.1 KiB4425

rtc_error.ccH A D07-Nov-20202 KiB8157

rtc_error.hH A D07-Nov-202011.5 KiB332137

rtc_error_unittest.ccH A D07-Nov-20207.3 KiB243167

rtc_event_log_output.hH A D07-Nov-20201.5 KiB4313

rtc_event_log_output_file.ccH A D07-Nov-20203 KiB8650

rtc_event_log_output_file.hH A D07-Nov-20201.8 KiB5926

rtc_event_log_output_file_unittest.ccH A D07-Nov-20205.9 KiB166111

rtp_headers.ccH A D07-Nov-20201.7 KiB5738

rtp_headers.hH A D07-Nov-20207 KiB196101

rtp_packet_info.ccH A D07-Nov-20202.5 KiB7351

rtp_packet_info.hH A D07-Nov-20203.5 KiB10761

rtp_packet_info_unittest.ccH A D07-Nov-20203.7 KiB180113

rtp_packet_infos.hH A D07-Nov-20204.2 KiB13184

rtp_packet_infos_unittest.ccH A D07-Nov-20202.4 KiB8653

rtp_parameters.ccH A D07-Nov-20208.6 KiB217174

rtp_parameters.hH A D07-Nov-202025.3 KiB665293

rtp_parameters_unittest.ccH A D07-Nov-20201.7 KiB5131

rtp_receiver_interface.ccH A D07-Nov-20201.2 KiB4525

rtp_receiver_interface.hH A D07-Nov-20206.3 KiB15069

rtp_sender_interface.ccH A D07-Nov-20201 KiB3719

rtp_sender_interface.hH A D07-Nov-20205.5 KiB13464

rtp_transceiver_direction.hH A D07-Nov-2020753 2812

rtp_transceiver_interface.ccH A D07-Nov-20201.2 KiB4524

rtp_transceiver_interface.hH A D07-Nov-20206.3 KiB14345

scoped_refptr.hH A D07-Nov-20204.2 KiB16573

scoped_refptr_unittest.ccH A D07-Nov-20202.9 KiB11279

sctp_transport_interface.ccH A D07-Nov-20201 KiB3316

sctp_transport_interface.hH A D07-Nov-20203.4 KiB9151

set_remote_description_observer_interface.hH A D07-Nov-20201.1 KiB3211

stats_types.ccH A D07-Nov-202026.8 KiB848719

stats_types.hH A D07-Nov-202015.8 KiB456310

turn_customizer.hH A D07-Nov-20201.4 KiB4621

uma_metrics.hH A D07-Nov-20205.3 KiB16099

video_track_source_proxy.hH A D07-Nov-20201.9 KiB5030

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