Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed)

Created:
9 years, 4 months ago by darin (slow to review)
Modified:
9 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, erikwright (departed), Paweł Hajdan Jr., Randy Smith (Not in Mondays), eroman, darin-cc_chromium.org, rkn, mmenke
Visibility:
Public.

Description

Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96560

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+758 lines, -753 lines) Patch
M net/base/address_list.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/asn1_util.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M net/base/auth.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/backoff_entry.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M net/base/capturing_net_log.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M net/base/cert_database.h View 4 chunks +4 lines, -4 lines 0 comments Download
M net/base/cert_verifier.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/cert_verify_result.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/cookie_monster.h View 4 chunks +4 lines, -4 lines 0 comments Download
M net/base/cookie_store.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/crl_filter.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/crypto_module.h View 2 chunks +3 lines, -2 lines 0 comments Download
M net/base/data_url.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/default_origin_bound_cert_store.h View 4 chunks +4 lines, -4 lines 0 comments Download
M net/base/directory_lister.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/dns_util.h View 1 2 chunks +6 lines, -5 lines 0 comments Download
M net/base/dnsrr_resolver.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
M net/base/dnssec_chain_verifier.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M net/base/dnssec_keyset.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/escape.h View 1 4 chunks +24 lines, -21 lines 0 comments Download
M net/base/file_stream.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/filter.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/base/host_cache.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/host_mapping_rules.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/host_port_pair.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/host_resolver.h View 3 chunks +10 lines, -9 lines 0 comments Download
M net/base/host_resolver_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/host_resolver_proc.h View 1 3 chunks +8 lines, -7 lines 0 comments Download
M net/base/io_buffer.h View 7 chunks +8 lines, -8 lines 0 comments Download
M net/base/ip_endpoint.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/keygen_handler.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/listen_socket.h View 2 chunks +4 lines, -4 lines 0 comments Download
M net/base/mapped_host_resolver.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/mime_sniffer.h View 3 chunks +6 lines, -5 lines 0 comments Download
M net/base/mime_util.h View 1 chunk +31 lines, -26 lines 0 comments Download
D net/base/net_api.h View 1 chunk +0 lines, -34 lines 0 comments Download
M net/base/net_errors.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + net/base/net_export.h View 1 1 chunk +14 lines, -14 lines 1 comment Download
M net/base/net_log.h View 1 8 chunks +8 lines, -8 lines 0 comments Download
M net/base/net_module.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/net_util.h View 1 18 chunks +86 lines, -82 lines 0 comments Download
M net/base/network_change_notifier.h View 3 chunks +4 lines, -4 lines 0 comments Download
M net/base/network_change_notifier_factory.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/origin_bound_cert_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/origin_bound_cert_store.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/pem_tokenizer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/registry_controlled_domain.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/sdch_filter.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/sdch_manager.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/base/single_request_host_resolver.h View 1 chunk +1 line, -1 line 0 comments Download
M net/base/ssl_cert_request_info.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/ssl_cipher_suite_names.h View 3 chunks +10 lines, -10 lines 0 comments Download
M net/base/ssl_client_auth_cache.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/ssl_config_service.h View 3 chunks +5 lines, -5 lines 0 comments Download
M net/base/ssl_config_service_defaults.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/ssl_false_start_blacklist.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/ssl_info.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/static_cookie_policy.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/test_data_stream.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/test_root_certs.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/transport_security_state.h View 3 chunks +3 lines, -3 lines 0 comments Download
M net/base/upload_data.h View 1 4 chunks +4 lines, -4 lines 0 comments Download
M net/base/upload_data_stream.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/winsock_init.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/x509_cert_types.h View 3 chunks +3 lines, -3 lines 0 comments Download
M net/base/x509_certificate.h View 3 chunks +3 lines, -3 lines 0 comments Download
M net/disk_cache/addr.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/backend_impl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/bitmap.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/disk_cache/block_files.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/cache_util.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
M net/disk_cache/disk_cache.h View 1 3 chunks +8 lines, -8 lines 1 comment Download
M net/disk_cache/disk_format.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/disk_cache/entry_impl.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M net/disk_cache/file.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/file_lock.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/hash.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/disk_cache/mapped_file.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/mem_backend_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/rankings.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/trace.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/dns/async_host_resolver.h View 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_query.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/dns/dns_response.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/dns/dns_transaction.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M net/ftp/ftp_auth_cache.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_ctrl_response_buffer.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_ls.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_netware.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_vms.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_directory_listing_parser_windows.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_network_layer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_network_session.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M net/ftp/ftp_network_transaction.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/ftp/ftp_transaction.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_transaction_factory.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/ftp/ftp_util.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/des.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M net/http/http_alternate_protocols.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_auth.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_auth_cache.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_auth_controller.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_auth_filter.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_auth_gssapi_posix.h View 1 4 chunks +7 lines, -7 lines 0 comments Download
M net/http/http_auth_handler.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_auth_handler_basic.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M net/http/http_auth_handler_digest.h View 1 3 chunks +5 lines, -5 lines 0 comments Download
M net/http/http_auth_handler_factory.h View 3 chunks +4 lines, -3 lines 0 comments Download
M net/http/http_auth_handler_negotiate.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_auth_handler_ntlm.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_auth_sspi_win.h View 1 4 chunks +8 lines, -8 lines 0 comments Download
M net/http/http_byte_range.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_cache.h View 4 chunks +6 lines, -6 lines 0 comments Download
M net/http/http_chunked_decoder.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_mac_signature.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_network_layer.h View 2 chunks +5 lines, -4 lines 0 comments Download
M net/http/http_network_session.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_network_session_peer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_network_transaction.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_request_headers.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_request_info.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_response_body_drainer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_response_headers.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_response_info.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_stream.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_stream_factory.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M net/http/http_stream_factory_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_transaction.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_transaction_factory.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_util.h View 1 5 chunks +5 lines, -5 lines 0 comments Download
M net/http/http_vary_data.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/proxy_client_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/http/url_security_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/net.gyp View 1 chunk +1 line, -1 line 0 comments Download
M net/ocsp/nss_ocsp.h View 2 chunks +5 lines, -5 lines 0 comments Download
M net/proxy/dhcp_proxy_script_adapter_fetcher_win.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/proxy/dhcp_proxy_script_fetcher.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M net/proxy/dhcp_proxy_script_fetcher_factory.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/dhcp_proxy_script_fetcher_win.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/init_proxy_resolver.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/multi_threaded_proxy_resolver.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/network_delegate_error_observer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/polling_proxy_config_service.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_bypass_rules.h View 1 chunk +3 lines, -3 lines 0 comments Download
M net/proxy/proxy_config.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/proxy/proxy_config_service.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/proxy/proxy_config_service_fixed.h View 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_config_service_linux.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_config_service_win.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_info.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_list.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_error_observer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_js_bindings.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_mac.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_script_data.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_v8.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_winhttp.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_script_fetcher.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_server.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/proxy/proxy_service.h View 3 chunks +5 lines, -5 lines 0 comments Download
M net/proxy/sync_host_resolver.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/proxy/sync_host_resolver_bridge.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/client_socket_factory.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/client_socket_handle.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/client_socket_pool.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/client_socket_pool_base.h View 1 4 chunks +7 lines, -7 lines 0 comments Download
M net/socket/client_socket_pool_histograms.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/client_socket_pool_manager.h View 3 chunks +5 lines, -5 lines 0 comments Download
M net/socket/dns_cert_provenance_checker.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/socket/server_socket.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/socket.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/socks5_client_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks_client_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks_client_socket_pool.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket.h View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_pool.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M net/socket/ssl_server_socket.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/stream_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/tcp_client_socket.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket/tcp_client_socket_libevent.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/tcp_client_socket_win.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/tcp_server_socket_libevent.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M net/socket/tcp_server_socket_win.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/transport_client_socket_pool.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/socket/web_socket_server_socket.h View 2 chunks +4 lines, -3 lines 0 comments Download
M net/socket_stream/socket_stream.h View 3 chunks +4 lines, -3 lines 0 comments Download
M net/socket_stream/socket_stream_job.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/socket_stream/socket_stream_metrics.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_frame_builder.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_framer.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/spdy/spdy_http_stream.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/spdy/spdy_http_utils.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M net/spdy/spdy_io_buffer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_session.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_session_pool.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_settings_storage.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_stream.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M net/spdy/spdy_websocket_stream.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/third_party/mozilla_security_manager/nsNSSCertTrust.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/tools/crash_cache/crash_cache.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/udp/datagram_client_socket.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/udp/datagram_server_socket.h View 1 chunk +1 line, -1 line 0 comments Download
M net/udp/datagram_socket.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/udp/udp_client_socket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/udp/udp_server_socket.h View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request.h View 5 chunks +5 lines, -5 lines 0 comments Download
M net/url_request/url_request_about_job.h View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_context.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_context_getter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_context_storage.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_error_job.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_file_job.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_filter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_job.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_job_factory.h View 2 chunks +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_netlog_params.h View 1 chunk +3 lines, -2 lines 0 comments Download
M net/url_request/url_request_redirect_job.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_simple_job.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_test_job.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_throttler_entry.h View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_throttler_entry_interface.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_throttler_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/view_cache_helper.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/websockets/websocket_frame_handler.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/websockets/websocket_handshake_handler.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M net/websockets/websocket_job.h View 1 chunk +1 line, -1 line 0 comments Download
M net/websockets/websocket_net_log_params.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/websockets/websocket_throttle.h View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
darin (slow to review)
9 years, 4 months ago (2011-08-10 21:44:43 UTC) #1
darin (slow to review)
I went with NET_EXPORT_PRIVATE instead of NET_EXPORT_FOR_TESTING or NET_EXPORT_TEST because NET_EXPORT_FOR_TESTING is longer and NET_EXPORT_TEST ...
9 years, 4 months ago (2011-08-10 21:47:06 UTC) #2
rvargas (doing something else)
LGTM. Thanks. http://codereview.chromium.org/7529043/diff/8001/net/disk_cache/disk_cache.h File net/disk_cache/disk_cache.h (right): http://codereview.chromium.org/7529043/diff/8001/net/disk_cache/disk_cache.h#newcode147 net/disk_cache/disk_cache.h:147: class NET_EXPORT_PRIVATE Entry { Could you make ...
9 years, 4 months ago (2011-08-11 01:25:29 UTC) #3
wtc
http://codereview.chromium.org/7529043/diff/8001/net/base/net_export.h File net/base/net_export.h (right): http://codereview.chromium.org/7529043/diff/8001/net/base/net_export.h#newcode22 net/base/net_export.h:22: #endif // defined(NET_IMPLEMENTATION) The reason these macros are named ...
9 years, 4 months ago (2011-08-11 18:51:48 UTC) #4
darin (slow to review)
9 years, 4 months ago (2011-08-11 21:46:41 UTC) #5
On 2011/08/11 18:51:48, wtc wrote:
> The reason these macros are named XXX_API is that they
> are defined as either __declspec(dllexport) or
> __declspec(dllimport).
> 
> To a programmer familiar with Windows, an XXX_EXPORT macro
> seems to imply __declspec(dllexport).
> 
> Are you avoiding the use of "API" deliberately?
> XXX_API and XXX_API_PRIVATE sound fine to me.

There was a large thread about this on chromium-dev@.

In a nut-shell, I think it confuses matters to mix the issue
of exporting functions from a DLL with declaring what is or
isn't public API.  Also, we do not need to add XXX_API to inline
functions, and yet inline functions can very much be part of an
official public API.

My hope was to just use NET_EXPORT in place of NET_API and NET_TEST,
but since Ricardo put the effort in to categorize these functions,
and because this is a first step toward defining a real public API
for the net/ module, I did not want to undo his work.  I have not
introduced XXX_EXPORT_PRIVATE in any other module, and I really hope
not to.

I think NET_EXPORT_PRIVATE will be difficult to maintain properly.
People will misuse it.  They will start using such a function from
places other than unit tests, and there will be no mechanism to
prevent that mistake.  net/ OWNERS are not expected to review patches
in other modules that make use of the net code.

I prefer to put private functions in an internal namespace, but
there may be other approaches that work.  We should try to find
solutions that are less error prone for distinguishing private
from public API.

I agree that XXX_EXPORT might sound like it could only mean
__declspec(dllexport), but then I thought about this from the point
of view of a DLL users, and for them (your consumers) "export"
makes sense.  You can see also that other libraries, like V8, already
use a macro with EXPORT in the name (V8EXPORT).

Another reason to stay away from XXX_API.  In the WebKit API, we
sometimes need to export private functions.  It seemed to be a bit
confusing to mark a private function with WEBKIT_API since by
definition a function in a private section of a class cannot be
API.  (We have some inline methods calling non-inline private
functions.)

Anyways, this all leads me to believe that XXX_EXPORT is the way to
go for all Chrome components.  I plan to also create a CHROME_EXPORT
macro so that we can make linking unit_tests.exe much much much
faster in the component build.  We will export all of the symbols
from chrome.dll that the unit tests require.  CHROME_API would
certainly not make any sense, and using CHROME_API_PRIVATE could
work, but it also seems to incorrectly classify the code needing to
be exported since chrome.dll really has no API.

Hope this helps!
-Darin

Powered by Google App Engine
This is Rietveld 408576698