You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Evgeny Gagua 10261be6c1 Linux Technion 0.99 6 years ago
..
audio WebRTC and WebSocket added 7 years ago
audio_codecs WebRTC and WebSocket added 7 years ago
call WebRTC and WebSocket added 7 years ago
crypto WebRTC and WebSocket added 7 years ago
rtc_event_log WebRTC and WebSocket added 7 years ago
stats WebRTC and WebSocket added 7 years ago
task_queue WebRTC and WebSocket added 7 years ago
test WebRTC and WebSocket added 7 years ago
transport WebRTC and WebSocket added 7 years ago
units WebRTC and WebSocket added 7 years ago
video WebRTC and WebSocket added 7 years ago
video_codecs WebRTC and WebSocket added 7 years ago
BUILD.gn WebRTC and WebSocket added 7 years ago
DEPS WebRTC and WebSocket added 7 years ago
DESIGN.md WebRTC and WebSocket added 7 years ago
OWNERS WebRTC and WebSocket added 7 years ago
README.md WebRTC and WebSocket added 7 years ago
array_view.h WebRTC and WebSocket added 7 years ago
array_view_unittest.cc WebRTC and WebSocket added 7 years ago
async_resolver_factory.h WebRTC and WebSocket added 7 years ago
audio_options.cc WebRTC and WebSocket added 7 years ago
audio_options.h WebRTC and WebSocket added 7 years ago
candidate.cc WebRTC and WebSocket added 7 years ago
candidate.h WebRTC and WebSocket added 7 years ago
create_peerconnection_factory.cc WebRTC and WebSocket added 7 years ago
create_peerconnection_factory.h WebRTC and WebSocket added 7 years ago
crypto_params.h WebRTC and WebSocket added 7 years ago
data_channel_interface.cc WebRTC and WebSocket added 7 years ago
data_channel_interface.h WebRTC and WebSocket added 7 years ago
dtls_transport_interface.cc WebRTC and WebSocket added 7 years ago
dtls_transport_interface.h WebRTC and WebSocket added 7 years ago
dtmf_sender_interface.h WebRTC and WebSocket added 7 years ago
fec_controller.h WebRTC and WebSocket added 7 years ago
fec_controller_override.h WebRTC and WebSocket added 7 years ago
function_view.h WebRTC and WebSocket added 7 years ago
function_view_unittest.cc WebRTC and WebSocket added 7 years ago
ice_transport_factory.cc WebRTC and WebSocket added 7 years ago
ice_transport_factory.h WebRTC and WebSocket added 7 years ago
ice_transport_interface.h WebRTC and WebSocket added 7 years ago
jsep.cc WebRTC and WebSocket added 7 years ago
jsep.h WebRTC and WebSocket added 7 years ago
jsep_ice_candidate.cc WebRTC and WebSocket added 7 years ago
jsep_ice_candidate.h WebRTC and WebSocket added 7 years ago
jsep_session_description.h WebRTC and WebSocket added 7 years ago
media_stream_interface.cc WebRTC and WebSocket added 7 years ago
media_stream_interface.h WebRTC and WebSocket added 7 years ago
media_stream_proxy.h WebRTC and WebSocket added 7 years ago
media_stream_track_proxy.h WebRTC and WebSocket added 7 years ago
media_types.cc WebRTC and WebSocket added 7 years ago
media_types.h WebRTC and WebSocket added 7 years ago
network_state_predictor.h WebRTC and WebSocket added 7 years ago
notifier.h WebRTC and WebSocket added 7 years ago
packet_socket_factory.h WebRTC and WebSocket added 7 years ago
peer_connection_factory_proxy.h WebRTC and WebSocket added 7 years ago
peer_connection_interface.cc WebRTC and WebSocket added 7 years ago
peer_connection_interface.h WebRTC and WebSocket added 7 years ago
peer_connection_proxy.h WebRTC and WebSocket added 7 years ago
proxy.cc WebRTC and WebSocket added 7 years ago
proxy.h WebRTC and WebSocket added 7 years ago
ref_counted_base.h WebRTC and WebSocket added 7 years ago
rtc_error.cc WebRTC and WebSocket added 7 years ago
rtc_error.h WebRTC and WebSocket added 7 years ago
rtc_error_unittest.cc WebRTC and WebSocket added 7 years ago
rtc_event_log_output.h WebRTC and WebSocket added 7 years ago
rtc_event_log_output_file.cc WebRTC and WebSocket added 7 years ago
rtc_event_log_output_file.h WebRTC and WebSocket added 7 years ago
rtc_event_log_output_file_unittest.cc WebRTC and WebSocket added 7 years ago
rtp_headers.cc WebRTC and WebSocket added 7 years ago
rtp_headers.h WebRTC and WebSocket added 7 years ago
rtp_packet_info.cc WebRTC and WebSocket added 7 years ago
rtp_packet_info.h WebRTC and WebSocket added 7 years ago
rtp_packet_info_unittest.cc WebRTC and WebSocket added 7 years ago
rtp_packet_infos.h WebRTC and WebSocket added 7 years ago
rtp_packet_infos_unittest.cc WebRTC and WebSocket added 7 years ago
rtp_parameters.cc WebRTC and WebSocket added 7 years ago
rtp_parameters.h WebRTC and WebSocket added 7 years ago
rtp_parameters_unittest.cc WebRTC and WebSocket added 7 years ago
rtp_receiver_interface.cc WebRTC and WebSocket added 7 years ago
rtp_receiver_interface.h WebRTC and WebSocket added 7 years ago
rtp_sender_interface.cc WebRTC and WebSocket added 7 years ago
rtp_sender_interface.h WebRTC and WebSocket added 7 years ago
rtp_transceiver_interface.cc WebRTC and WebSocket added 7 years ago
rtp_transceiver_interface.h WebRTC and WebSocket added 7 years ago
scoped_refptr.h WebRTC and WebSocket added 7 years ago
sctp_transport_interface.cc WebRTC and WebSocket added 7 years ago
sctp_transport_interface.h WebRTC and WebSocket added 7 years ago
set_remote_description_observer_interface.h WebRTC and WebSocket added 7 years ago
stats_types.cc WebRTC and WebSocket added 7 years ago
stats_types.h WebRTC and WebSocket added 7 years ago
turn_customizer.h WebRTC and WebSocket added 7 years ago
uma_metrics.h WebRTC and WebSocket added 7 years ago
video_track_source_proxy.h WebRTC and WebSocket added 7 years ago

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/. It’s not always possible to avoid this, but be aware that it adds to a small mountain of technical debt that we’re 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 won’t 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.