• Elad Alon's avatar
    Introduce WebRtcRemoteEventLogManager · 036ea24b
    Elad Alon authored
    WebRtcRemoteEventLogManager is a member of WebRtcEventLogManager, in
    charge of managing remote-bound WebRTC event logs:
    * Store remote-bound log files locally, persisting them between session
      of Chrome.
    * Uploading them when permissible (when no active peer connections are
      present, with which the upload's increased bandwidth utilization might
      interfere).
    * Purge remote-bound log files from local disk once an upload attempt
      was made, regardless of whether it was successful. (Otherwise, we might
      end up attempting multiple times, wasting bandwidth on an upload that
      always fails after a non-trivial amount of data was pushed upstream.
      More refined retry behavior is to be added at a later stage.)
    
    Upcoming related work:
    * Actual implementation of the uploader (this CL deals with managing the
      files to be uploaded, and the timing of the upload).
    * Implementation of the JS hooks.
    
    Bug: 775415
    Change-Id: Ib5ee6081ca13d85cb8a3f38d6462bbd61a99dcae
    Reviewed-on: https://chromium-review.googlesource.com/891219
    Commit-Queue: Elad Alon <eladalon@chromium.org>
    Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
    Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#534826}
    036ea24b
webrtc_event_log_manager_common.cc 2.16 KB