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

Issue 26784003: google_apis: Implement google_apis::ResponseWriter (Closed)

Created:
7 years, 2 months ago by hashimoto
Modified:
7 years, 1 month ago
Reviewers:
wtc, kinaba
CC:
chromium-reviews, tfarina, cbentzel+watch_chromium.org
Visibility:
Public.

Description

google_apis: Implement google_apis::ResponseWriter Remove URLFetcherDelegate::OnURLFetchDownloadData. Stop resetting response_writer_ in URLFetcherCore::CancelURLRequest() to guarantee that the writer object is always alive if URLFetcher is alive. To close the file, call URLFetcherResponseWriter::Finish when URLFetcherCore::URLFetcherCore::WriteBuffer fails. google_apis::ResponseWriter is responsible to call GetContentCallback. BUG=126753 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230992

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fix null GetContentCallback handling #

Patch Set 3 : Fix compile error #

Total comments: 12

Patch Set 4 : Fix comments #

Total comments: 2

Patch Set 5 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -108 lines) Patch
M chrome/browser/google_apis/base_requests.h View 1 2 3 4 8 chunks +49 lines, -11 lines 0 comments Download
M chrome/browser/google_apis/base_requests.cc View 1 8 chunks +74 lines, -33 lines 0 comments Download
M chrome/browser/google_apis/gdata_contacts_requests.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/tools/get_server_time/get_server_time.cc View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M net/url_request/url_fetcher_core.h View 1 chunk +0 lines, -3 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 6 chunks +5 lines, -28 lines 0 comments Download
M net/url_request/url_fetcher_delegate.h View 1 chunk +0 lines, -13 lines 0 comments Download
M net/url_request/url_fetcher_delegate.cc View 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hashimoto
Please review. This change depends on https://codereview.chromium.org/26230003/ ("net: Allow URLFetcher users to inject custom URLFetcherResponseWriter")
7 years, 2 months ago (2013-10-16 06:38:05 UTC) #1
kinaba
https://codereview.chromium.org/26784003/diff/4001/chrome/browser/google_apis/base_requests.cc File chrome/browser/google_apis/base_requests.cc (right): https://codereview.chromium.org/26784003/diff/4001/chrome/browser/google_apis/base_requests.cc#newcode195 chrome/browser/google_apis/base_requests.cc:195: GetOutputFilePath(&output_file_path, &get_content_callback); Either the return value of GetOutputFilePath should ...
7 years, 2 months ago (2013-10-16 08:38:04 UTC) #2
hashimoto
https://codereview.chromium.org/26784003/diff/4001/chrome/browser/google_apis/base_requests.cc File chrome/browser/google_apis/base_requests.cc (right): https://codereview.chromium.org/26784003/diff/4001/chrome/browser/google_apis/base_requests.cc#newcode195 chrome/browser/google_apis/base_requests.cc:195: GetOutputFilePath(&output_file_path, &get_content_callback); On 2013/10/16 08:38:04, kinaba wrote: > Either ...
7 years, 2 months ago (2013-10-17 03:33:14 UTC) #3
kinaba
lgtm
7 years, 2 months ago (2013-10-18 07:28:45 UTC) #4
hashimoto
wtc@, Could you take a look at this change as a net/ owner?
7 years, 2 months ago (2013-10-18 10:40:00 UTC) #5
hashimoto
On 2013/10/18 10:40:00, hashimoto wrote: > wtc@, > Could you take a look at this ...
7 years, 2 months ago (2013-10-23 06:43:14 UTC) #6
wtc
Patch set 3 LGTM. https://codereview.chromium.org/26784003/diff/24001/chrome/browser/google_apis/base_requests.cc File chrome/browser/google_apis/base_requests.cc (right): https://codereview.chromium.org/26784003/diff/24001/chrome/browser/google_apis/base_requests.cc#newcode137 chrome/browser/google_apis/base_requests.cc:137: make_scoped_ptr(new std::string(buffer->data(), num_bytes))); Nit: it ...
7 years, 2 months ago (2013-10-23 21:53:14 UTC) #7
hashimoto
Thanks for your kind review. https://codereview.chromium.org/26784003/diff/24001/chrome/browser/google_apis/base_requests.cc File chrome/browser/google_apis/base_requests.cc (right): https://codereview.chromium.org/26784003/diff/24001/chrome/browser/google_apis/base_requests.cc#newcode137 chrome/browser/google_apis/base_requests.cc:137: make_scoped_ptr(new std::string(buffer->data(), num_bytes))); On ...
7 years, 2 months ago (2013-10-24 07:23:37 UTC) #8
wtc
Patch set 4 LGTM. https://codereview.chromium.org/26784003/diff/155001/chrome/browser/google_apis/base_requests.h File chrome/browser/google_apis/base_requests.h (right): https://codereview.chromium.org/26784003/diff/155001/chrome/browser/google_apis/base_requests.h#newcode169 chrome/browser/google_apis/base_requests.h:169: // get_content_callback is called when ...
7 years, 1 month ago (2013-10-24 18:36:39 UTC) #9
hashimoto
https://codereview.chromium.org/26784003/diff/155001/chrome/browser/google_apis/base_requests.h File chrome/browser/google_apis/base_requests.h (right): https://codereview.chromium.org/26784003/diff/155001/chrome/browser/google_apis/base_requests.h#newcode169 chrome/browser/google_apis/base_requests.h:169: // get_content_callback is called when some part of the ...
7 years, 1 month ago (2013-10-25 05:29:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/26784003/405001
7 years, 1 month ago (2013-10-25 05:29:27 UTC) #11
commit-bot: I haz the power
7 years, 1 month ago (2013-10-25 08:53:50 UTC) #12
Message was sent while issue was closed.
Change committed as 230992

Powered by Google App Engine
This is Rietveld 408576698