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

Issue 1014653002: Add ZipReader::ExtractCurrentEntry with a delegate interface. (Closed)

Created:
5 years, 9 months ago by grt (UTC plus 2)
Modified:
5 years, 9 months ago
Reviewers:
hshi1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ZipReader::ExtractCurrentEntry with a delegate interface. This change gives consumers of ZipReader a way to have the current entry streamed to them via a Delegate interface. It also: - Reduces duplication in the ExtractCurrentEntry* functions. - Uses the heap rather than the stack for intermediate buffers. - Changes ExtractCurrentEntryToFd to ExtractCurrentEntryToFile, making it cross-platform in the process. BUG=462584 Committed: https://crrev.com/2919be01ff758875fc7161f6b41f4461518c1213 Cr-Commit-Position: refs/heads/master@{#320948} Committed: https://crrev.com/98e6db00a6cc9cf6df682240d61f1b535b564cb8 Cr-Commit-Position: refs/heads/master@{#321205}

Patch Set 1 #

Patch Set 2 : fix unused var error and add a new test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -101 lines) Patch
M third_party/zlib/google/zip_reader.h View 5 chunks +48 lines, -7 lines 0 comments Download
M third_party/zlib/google/zip_reader.cc View 1 7 chunks +162 lines, -88 lines 0 comments Download
M third_party/zlib/google/zip_reader_unittest.cc View 1 6 chunks +108 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
grt (UTC plus 2)
PTAL, thanks.
5 years, 9 months ago (2015-03-16 20:21:15 UTC) #2
hshi1
On 2015/03/16 20:21:15, grt wrote: > PTAL, thanks. Please fix warnings: ../../third_party/zlib/google/zip_reader.cc: In destructor 'virtual ...
5 years, 9 months ago (2015-03-16 20:37:18 UTC) #3
grt (UTC plus 2)
Done, I think. I've also added a new test. Thanks for taking a look.
5 years, 9 months ago (2015-03-17 03:01:52 UTC) #5
grt (UTC plus 2)
On 2015/03/17 03:01:52, grt wrote: > Done, I think. I've also added a new test. ...
5 years, 9 months ago (2015-03-17 13:05:55 UTC) #6
hshi1
lgtm
5 years, 9 months ago (2015-03-17 17:46:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1014653002/40001
5 years, 9 months ago (2015-03-17 18:06:12 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 9 months ago (2015-03-17 18:53:44 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2919be01ff758875fc7161f6b41f4461518c1213 Cr-Commit-Position: refs/heads/master@{#320948}
5 years, 9 months ago (2015-03-17 18:54:50 UTC) #11
benwells
A revert of this CL (patchset #2 id:40001) has been created in https://codereview.chromium.org/1016813004/ by benwells@chromium.org. ...
5 years, 9 months ago (2015-03-18 02:31:12 UTC) #12
grt (UTC plus 2)
I'm re-landing since I can't repro the failure locally. I have reason to believe that ...
5 years, 9 months ago (2015-03-18 19:13:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1014653002/40001
5 years, 9 months ago (2015-03-18 19:14:15 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 9 months ago (2015-03-18 21:22:49 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-18 21:23:45 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/98e6db00a6cc9cf6df682240d61f1b535b564cb8
Cr-Commit-Position: refs/heads/master@{#321205}

Powered by Google App Engine
This is Rietveld 408576698