3d41d4561d
Renamed http utilities by appending ...AndBlock() to make it obvious that they are blocking (synchronous) calls. Async I/O is coming in subsequent CLs. Replaced a bunch of "const char*" with "const std::string&" in function prototypes. Also removed extra overloads for http_utils functions in preparation for adding asynchronous API which would bloat the overloads even more. The original overloads were to provide the ability to omit some less-commonly-used parameters, but that would eventually make the API harder to choose from since the number of overloads will get out of hand. Swept the code to remove unnecessary calls to std::string::c_str() and added omitted parameters in calls to http_utils functions. BUG=None TEST=FEATURES=test emerge-link libchromeos peerd privetd feedback metrics buffet CQ-DEPEND=CL:*191319 Change-Id: I9c1721cd2179ba3b389dd94ef181370eec98ed2e Reviewed-on: https://chromium-review.googlesource.com/239251 Tested-by: Alex Vakulenko <avakulenko@chromium.org> Reviewed-by: Vitaly Buka <vitalybuka@chromium.org> Reviewed-by: Christopher Wiley <wiley@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org> |
||
---|---|---|
.. | ||
mock | ||
metrics_hashes.cc | ||
metrics_hashes.h | ||
metrics_hashes_unittest.cc | ||
metrics_log.cc | ||
metrics_log.h | ||
metrics_log_base.cc | ||
metrics_log_base.h | ||
metrics_log_base_unittest.cc | ||
sender.h | ||
sender_http.cc | ||
sender_http.h | ||
system_profile_cache.cc | ||
system_profile_cache.h | ||
system_profile_setter.h | ||
upload_service.cc | ||
upload_service.h | ||
upload_service_test.cc |