DescriptionDrive API: Simplify lifetime management of child requests in BatchUploadRequest.
Previously BatchableRequestBase can be used both as a normal request and as a
child request in BatchUploadRequest. Even when BatchableRequestBase is used as
child request, its lifetime must be managed by RequestSender, and it makes hard
to track the lifetime in BatchUploadRequest.
To simplify lifetime management in BatchUploadRequest, the CL extracts the core
part of BatchableRequestBase into BatchableDelegate, and lets BatchUploadRequest
use the delegate as a child request. Because the delegate is nolonger owned by
RequestSender, BatchUploadRequest can own its child requests without caring
RequestSender.
BUG=451917
TEST=googleapis_unittests
Committed: https://crrev.com/3cea41ac2c0288917be7c07039ac081e9dface49
Cr-Commit-Position: refs/heads/master@{#329809}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Fix format #Patch Set 4 : Add missing header file. #
Total comments: 2
Patch Set 5 : Improve comment. #
Messages
Total messages: 9 (3 generated)
|