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

Issue 1132693006: Drive API: Simplify lifetime management of child requests in BatchUploadRequest. (Closed)

Created:
5 years, 7 months ago by hirono
Modified:
5 years, 7 months ago
Reviewers:
kinaba
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drive 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -224 lines) Patch
M chrome/browser/drive/drive_api_service.cc View 1 4 chunks +18 lines, -12 lines 0 comments Download
M google_apis/drive/base_requests.h View 1 6 chunks +48 lines, -29 lines 0 comments Download
M google_apis/drive/base_requests.cc View 1 5 chunks +26 lines, -41 lines 0 comments Download
M google_apis/drive/base_requests_unittest.cc View 1 2 3 6 chunks +19 lines, -13 lines 0 comments Download
M google_apis/drive/drive_api_requests.h View 1 2 7 chunks +79 lines, -43 lines 0 comments Download
M google_apis/drive/drive_api_requests.cc View 1 2 3 4 16 chunks +110 lines, -48 lines 0 comments Download
M google_apis/drive/drive_api_requests_unittest.cc View 1 5 chunks +38 lines, -38 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
hirono
PTAL, thanks!
5 years, 7 months ago (2015-05-12 08:46:52 UTC) #2
kinaba
lgtm https://codereview.chromium.org/1132693006/diff/60001/google_apis/drive/drive_api_requests.cc File google_apis/drive/drive_api_requests.cc (right): https://codereview.chromium.org/1132693006/diff/60001/google_apis/drive/drive_api_requests.cc#newcode1409 google_apis/drive/drive_api_requests.cc:1409: // Pass onwership of |delegate| so that it ...
5 years, 7 months ago (2015-05-14 04:16:40 UTC) #3
hirono
Thank you! https://codereview.chromium.org/1132693006/diff/60001/google_apis/drive/drive_api_requests.cc File google_apis/drive/drive_api_requests.cc (right): https://codereview.chromium.org/1132693006/diff/60001/google_apis/drive/drive_api_requests.cc#newcode1409 google_apis/drive/drive_api_requests.cc:1409: // Pass onwership of |delegate| so that ...
5 years, 7 months ago (2015-05-14 04:43:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1132693006/80001
5 years, 7 months ago (2015-05-14 04:43:29 UTC) #7
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-14 05:38:49 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 05:40:26 UTC) #9
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3cea41ac2c0288917be7c07039ac081e9dface49
Cr-Commit-Position: refs/heads/master@{#329809}

Powered by Google App Engine
This is Rietveld 408576698