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

Issue 513683002: [fsp] Add support for providing thumbnails. (Closed)

Created:
6 years, 3 months ago by mtomasz
Modified:
6 years, 3 months ago
Reviewers:
benwells, hirono
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tzik, yoshiki+watch_chromium.org, nhiroki, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[fsp] Add support for providing thumbnails. Previously, thumbnails were generated from full size images, which in case of cloud providers would invoke downloading the entire file. This CL adds an ability to provide a thumbnail as a data URI, so: (1) We can have thumbnails for other file types than images. (2) Thumbnails are shown fast. (3) Resource consumption is significantly reduced. Note, that the thumbnails are not wired to Files app yet. That will be done in a separate patch. TEST=unit_tests: *FileSystemProvider*GetMetadata* BUG=407954 Committed: https://crrev.com/47501847827d29b4ba148a161a521eb3cd5b0730 Cr-Commit-Position: refs/heads/master@{#292840}

Patch Set 1 #

Patch Set 2 : Fixed a bug. #

Total comments: 8

Patch Set 3 : Addressed comments. #

Total comments: 2

Patch Set 4 : Use scoped_ptr for EntryMetadata. #

Total comments: 4

Patch Set 5 : Fixed. #

Patch Set 6 : Fixed a test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -169 lines) Patch
M chrome/browser/chromeos/file_manager/filesystem_api_util.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 2 3 4 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 2 3 4 6 chunks +53 lines, -31 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.h View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader.cc View 1 2 3 6 chunks +15 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader_unittest.cc View 1 2 3 17 chunks +38 lines, -37 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer_unittest.cc View 1 2 3 4 5 4 chunks +17 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util.cc View 1 2 3 1 chunk +23 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc View 1 2 3 6 chunks +34 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata_unittest.cc View 1 2 3 7 chunks +118 lines, -34 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 1 2 3 5 chunks +20 lines, -4 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider.idl View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 1 2 3 4 5 chunks +60 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
mtomasz
mtomasz@chromium.org changed reviewers: + hirono@chromium.org
6 years, 3 months ago (2014-08-27 08:40:56 UTC) #1
mtomasz
@hirono: PTAL. Thanks.
6 years, 3 months ago (2014-08-27 08:41:04 UTC) #2
hirono
https://codereview.chromium.org/513683002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc File chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc (right): https://codereview.chromium.org/513683002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc#newcode36 chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc:36: if (!params->metadata.modification_time.additional_properties.GetString( Should update thumbnail here? https://codereview.chromium.org/513683002/diff/20001/chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h File chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h ...
6 years, 3 months ago (2014-08-27 09:20:08 UTC) #3
mtomasz
https://codereview.chromium.org/513683002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc File chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc (right): https://codereview.chromium.org/513683002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc#newcode36 chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc:36: if (!params->metadata.modification_time.additional_properties.GetString( On 2014/08/27 09:20:07, hirono wrote: > Should ...
6 years, 3 months ago (2014-08-28 04:57:55 UTC) #4
hirono
> How about passing EntryMetadata as a scoped_ptr? We would avoid the linked_ptr > drawbacks. ...
6 years, 3 months ago (2014-08-29 03:53:14 UTC) #5
mtomasz
On 2014/08/29 03:53:14, hirono wrote: > > How about passing EntryMetadata as a scoped_ptr? We ...
6 years, 3 months ago (2014-08-29 03:53:57 UTC) #6
hirono
https://codereview.chromium.org/513683002/diff/40001/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js File chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js (right): https://codereview.chromium.org/513683002/diff/40001/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js#newcode43 chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js:43: var uriLowerCase = uri.toLowerCase(); uri.substr(0, 20).toLowerCase() may be good ...
6 years, 3 months ago (2014-08-29 03:58:32 UTC) #7
mtomasz
The scoped_ptr change made the patch big. Sorry for that. PTAL. https://codereview.chromium.org/513683002/diff/40001/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js File chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js (right): ...
6 years, 3 months ago (2014-08-29 05:20:27 UTC) #8
hirono
https://codereview.chromium.org/513683002/diff/60001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc (right): https://codereview.chromium.org/513683002/diff/60001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc#newcode128 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc:128: scoped_ptr<EntryMetadata>& metadata = it->second->metadata; const scoped_ptr<EntryMetadta>& ? or just ...
6 years, 3 months ago (2014-08-29 06:02:41 UTC) #9
mtomasz
https://codereview.chromium.org/513683002/diff/60001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc (right): https://codereview.chromium.org/513683002/diff/60001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc#newcode128 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc:128: scoped_ptr<EntryMetadata>& metadata = it->second->metadata; On 2014/08/29 06:02:41, hirono wrote: ...
6 years, 3 months ago (2014-08-29 06:17:48 UTC) #10
hirono
lgtm! Thank you!
6 years, 3 months ago (2014-08-29 11:14:26 UTC) #11
mtomasz
@benwells: PTAL at IDL.
6 years, 3 months ago (2014-09-01 00:17:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/513683002/80001
6 years, 3 months ago (2014-09-01 00:17:41 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-01 01:06:32 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/7946)
6 years, 3 months ago (2014-09-01 01:10:11 UTC) #18
benwells
lgtm
6 years, 3 months ago (2014-09-01 01:31:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/513683002/80001
6 years, 3 months ago (2014-09-01 04:38:03 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-01 05:14:02 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/9778)
6 years, 3 months ago (2014-09-01 05:49:39 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/513683002/100001
6 years, 3 months ago (2014-09-01 06:43:35 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 0a021992e1be21e2b2ad0ed0d70be11ecf9cb58e
6 years, 3 months ago (2014-09-01 07:57:28 UTC) #27
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:15:49 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/47501847827d29b4ba148a161a521eb3cd5b0730
Cr-Commit-Position: refs/heads/master@{#292840}

Powered by Google App Engine
This is Rietveld 408576698