Commit 2af1c4f3 authored by Eugene But's avatar Eugene But Committed by Commit Bot

Updated DownloadControllerDelegate comments.

Explained that DownloadTask can not be used after receiving
DownloadControllerDelegate::OnDownloadControllerDestroyed callback.

Bug: 758525
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I0683f77731e5de3f536183805674160111912919
Reviewed-on: https://chromium-review.googlesource.com/764550Reviewed-by: 's avatarGregory Chatzinoff <gchatz@chromium.org>
Commit-Queue: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#516147}
parent 2bb318bb
......@@ -34,7 +34,9 @@ class DownloadControllerDelegate {
std::unique_ptr<DownloadTask> task) {}
// Called when DownloadController is about to be destroyed. Delegate should
// be set to null inside this method.
// be set to null inside this method. All started DownloadTasks will stop the
// download. Clients should not call DownloadTask::Start() on the remaining
// alive tasks.
virtual void OnDownloadControllerDestroyed(
DownloadController* download_controller) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment