android13/external/webrtc/api
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
adaptation initial 2024-06-22 20:45:49 +08:00
audio initial 2024-06-22 20:45:49 +08:00
audio_codecs initial 2024-06-22 20:45:49 +08:00
call initial 2024-06-22 20:45:49 +08:00
crypto initial 2024-06-22 20:45:49 +08:00
neteq initial 2024-06-22 20:45:49 +08:00
rtc_event_log initial 2024-06-22 20:45:49 +08:00
stats initial 2024-06-22 20:45:49 +08:00
task_queue initial 2024-06-22 20:45:49 +08:00
test initial 2024-06-22 20:45:49 +08:00
transport initial 2024-06-22 20:45:49 +08:00
units initial 2024-06-22 20:45:49 +08:00
video initial 2024-06-22 20:45:49 +08:00
video_codecs initial 2024-06-22 20:45:49 +08:00
voip initial 2024-06-22 20:45:49 +08:00
BUILD.gn initial 2024-06-22 20:45:49 +08:00
DEPS initial 2024-06-22 20:45:49 +08:00
DESIGN.md initial 2024-06-22 20:45:49 +08:00
OWNERS.webrtc initial 2024-06-22 20:45:49 +08:00
README.md initial 2024-06-22 20:45:49 +08:00
array_view.h initial 2024-06-22 20:45:49 +08:00
array_view_unittest.cc initial 2024-06-22 20:45:49 +08:00
async_resolver_factory.h initial 2024-06-22 20:45:49 +08:00
audio_options.cc initial 2024-06-22 20:45:49 +08:00
audio_options.h initial 2024-06-22 20:45:49 +08:00
candidate.cc initial 2024-06-22 20:45:49 +08:00
candidate.h initial 2024-06-22 20:45:49 +08:00
create_peerconnection_factory.cc initial 2024-06-22 20:45:49 +08:00
create_peerconnection_factory.h initial 2024-06-22 20:45:49 +08:00
crypto_params.h initial 2024-06-22 20:45:49 +08:00
data_channel_interface.cc initial 2024-06-22 20:45:49 +08:00
data_channel_interface.h initial 2024-06-22 20:45:49 +08:00
dtls_transport_interface.cc initial 2024-06-22 20:45:49 +08:00
dtls_transport_interface.h initial 2024-06-22 20:45:49 +08:00
dtmf_sender_interface.h initial 2024-06-22 20:45:49 +08:00
fec_controller.h initial 2024-06-22 20:45:49 +08:00
fec_controller_override.h initial 2024-06-22 20:45:49 +08:00
frame_transformer_interface.h initial 2024-06-22 20:45:49 +08:00
function_view.h initial 2024-06-22 20:45:49 +08:00
function_view_unittest.cc initial 2024-06-22 20:45:49 +08:00
ice_transport_factory.cc initial 2024-06-22 20:45:49 +08:00
ice_transport_factory.h initial 2024-06-22 20:45:49 +08:00
ice_transport_interface.h initial 2024-06-22 20:45:49 +08:00
jsep.cc initial 2024-06-22 20:45:49 +08:00
jsep.h initial 2024-06-22 20:45:49 +08:00
jsep_ice_candidate.cc initial 2024-06-22 20:45:49 +08:00
jsep_ice_candidate.h initial 2024-06-22 20:45:49 +08:00
jsep_session_description.h initial 2024-06-22 20:45:49 +08:00
media_stream_interface.cc initial 2024-06-22 20:45:49 +08:00
media_stream_interface.h initial 2024-06-22 20:45:49 +08:00
media_stream_proxy.h initial 2024-06-22 20:45:49 +08:00
media_stream_track_proxy.h initial 2024-06-22 20:45:49 +08:00
media_types.cc initial 2024-06-22 20:45:49 +08:00
media_types.h initial 2024-06-22 20:45:49 +08:00
network_state_predictor.h initial 2024-06-22 20:45:49 +08:00
notifier.h initial 2024-06-22 20:45:49 +08:00
packet_socket_factory.h initial 2024-06-22 20:45:49 +08:00
peer_connection_factory_proxy.h initial 2024-06-22 20:45:49 +08:00
peer_connection_interface.cc initial 2024-06-22 20:45:49 +08:00
peer_connection_interface.h initial 2024-06-22 20:45:49 +08:00
peer_connection_proxy.h initial 2024-06-22 20:45:49 +08:00
priority.h initial 2024-06-22 20:45:49 +08:00
proxy.cc initial 2024-06-22 20:45:49 +08:00
proxy.h initial 2024-06-22 20:45:49 +08:00
ref_counted_base.h initial 2024-06-22 20:45:49 +08:00
rtc_error.cc initial 2024-06-22 20:45:49 +08:00
rtc_error.h initial 2024-06-22 20:45:49 +08:00
rtc_error_unittest.cc initial 2024-06-22 20:45:49 +08:00
rtc_event_log_output.h initial 2024-06-22 20:45:49 +08:00
rtc_event_log_output_file.cc initial 2024-06-22 20:45:49 +08:00
rtc_event_log_output_file.h initial 2024-06-22 20:45:49 +08:00
rtc_event_log_output_file_unittest.cc initial 2024-06-22 20:45:49 +08:00
rtp_headers.cc initial 2024-06-22 20:45:49 +08:00
rtp_headers.h initial 2024-06-22 20:45:49 +08:00
rtp_packet_info.cc initial 2024-06-22 20:45:49 +08:00
rtp_packet_info.h initial 2024-06-22 20:45:49 +08:00
rtp_packet_info_unittest.cc initial 2024-06-22 20:45:49 +08:00
rtp_packet_infos.h initial 2024-06-22 20:45:49 +08:00
rtp_packet_infos_unittest.cc initial 2024-06-22 20:45:49 +08:00
rtp_parameters.cc initial 2024-06-22 20:45:49 +08:00
rtp_parameters.h initial 2024-06-22 20:45:49 +08:00
rtp_parameters_unittest.cc initial 2024-06-22 20:45:49 +08:00
rtp_receiver_interface.cc initial 2024-06-22 20:45:49 +08:00
rtp_receiver_interface.h initial 2024-06-22 20:45:49 +08:00
rtp_sender_interface.cc initial 2024-06-22 20:45:49 +08:00
rtp_sender_interface.h initial 2024-06-22 20:45:49 +08:00
rtp_transceiver_direction.h initial 2024-06-22 20:45:49 +08:00
rtp_transceiver_interface.cc initial 2024-06-22 20:45:49 +08:00
rtp_transceiver_interface.h initial 2024-06-22 20:45:49 +08:00
scoped_refptr.h initial 2024-06-22 20:45:49 +08:00
scoped_refptr_unittest.cc initial 2024-06-22 20:45:49 +08:00
sctp_transport_interface.cc initial 2024-06-22 20:45:49 +08:00
sctp_transport_interface.h initial 2024-06-22 20:45:49 +08:00
set_remote_description_observer_interface.h initial 2024-06-22 20:45:49 +08:00
stats_types.cc initial 2024-06-22 20:45:49 +08:00
stats_types.h initial 2024-06-22 20:45:49 +08:00
turn_customizer.h initial 2024-06-22 20:45:49 +08:00
uma_metrics.h initial 2024-06-22 20:45:49 +08:00
video_track_source_proxy.h initial 2024-06-22 20:45:49 +08:00

README.md

How to write code in the api/ directory

Mostly, just follow the regular style guide, but:

  • Note that api/ code is not exempt from the “.h and .cc files come in pairs” rule, so if you declare something in api/path/to/foo.h, it should be defined in api/path/to/foo.cc.
  • Headers in api/ should, if possible, not #include headers outside api/. Its not always possible to avoid this, but be aware that it adds to a small mountain of technical debt that were trying to shrink.
  • .cc files in api/, on the other hand, are free to #include headers outside api/.

That is, the preferred way for api/ code to access non-api/ code is to call it from a .cc file, so that users of our API headers wont transitively #include non-public headers.

For headers in api/ that need to refer to non-public types, forward declarations are often a lesser evil than including non-public header files. The usual rules still apply, though.

.cc files in api/ should preferably be kept reasonably small. If a substantial implementation is needed, consider putting it with our non-public code, and just call it from the api/ .cc file.