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

Issue 192573002: [fsp] Introduce file_system_provider::Service class for the FileSystemProvider API. (Closed)

Created:
6 years, 9 months ago by mtomasz
Modified:
6 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tzik, yoshiki+watch_chromium.org, nhiroki, rginda+watch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

[fsp] Introduce file_system_provider::Service class for the FileSystemProvider API. This patch introduces a service which manages file systems provided by third party extensions. The class has two methods: registerFileSystem() and unregisterFileSystem() which are supposed to be called from chrome.fileSystemProvider.* api methods. The service stores a map of the registered file systems, mounts them, and notifies observers (VolumeManager) about the fact. The file system backend does not handle the new file system type yet, this will be done separately. TEST=browser_test, unit_tests: *FileSystemProvider* BUG=248427 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259820

Patch Set 1 #

Patch Set 2 : Cleaned up. #

Total comments: 4

Patch Set 3 : Fixed observer.h + added missing service_factory.h/cc. #

Patch Set 4 : Fixed tests on a debug build by adding a thread bundle. #

Patch Set 5 : Converted ProvidedFileSystem to a class. #

Patch Set 6 : Rebased. #

Total comments: 22

Patch Set 7 : Addressed comments. #

Patch Set 8 : Simplified. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+791 lines, -28 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_util.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/OWNERS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 3 chunks +24 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.h View 1 2 3 4 5 6 7 5 chunks +23 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 2 3 4 5 6 7 chunks +49 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager_factory.cc View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager_unittest.cc View 1 2 3 4 5 2 chunks +11 lines, -4 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/observer.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/provided_file_system.h View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/service.h View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/service.cc View 1 2 3 4 5 6 1 chunk +151 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/service_factory.h View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/service_factory.cc View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/service_unittest.cc View 1 2 3 4 5 6 1 chunk +202 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/file_browser_private.idl View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/mount/manifest.json View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/mount/test.js View 2 chunks +49 lines, -0 lines 0 comments Download
M webkit/browser/fileapi/file_system_context.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M webkit/common/fileapi/file_system_types.h View 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/common/fileapi/file_system_util.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
mtomasz
@satorux, @kinaba: PTAL. Thanks.
6 years, 9 months ago (2014-03-10 09:01:49 UTC) #1
kinaba
lgtm https://codereview.chromium.org/192573002/diff/30023/chrome/browser/chromeos/file_system_provider/observer.h File chrome/browser/chromeos/file_system_provider/observer.h (right): https://codereview.chromium.org/192573002/diff/30023/chrome/browser/chromeos/file_system_provider/observer.h#newcode18 chrome/browser/chromeos/file_system_provider/observer.h:18: const ProvidedFileSystem& file_system); = 0? https://codereview.chromium.org/192573002/diff/30023/chrome/browser/chromeos/file_system_provider/observer.h#newcode20 chrome/browser/chromeos/file_system_provider/observer.h:20: const ...
6 years, 9 months ago (2014-03-12 01:12:36 UTC) #2
mtomasz
@kinuko: PTAL at fileapi::*. Thanks. https://codereview.chromium.org/192573002/diff/30023/chrome/browser/chromeos/file_system_provider/observer.h File chrome/browser/chromeos/file_system_provider/observer.h (right): https://codereview.chromium.org/192573002/diff/30023/chrome/browser/chromeos/file_system_provider/observer.h#newcode18 chrome/browser/chromeos/file_system_provider/observer.h:18: const ProvidedFileSystem& file_system); On ...
6 years, 9 months ago (2014-03-12 03:06:18 UTC) #3
mtomasz
@benwells: PTAL at the *.idl change. Thanks.
6 years, 9 months ago (2014-03-12 03:12:28 UTC) #4
kinuko
fileapi changes lgtm How much does this code depend on chromeos-specific code (just asking)? I'm ...
6 years, 9 months ago (2014-03-12 05:09:14 UTC) #5
mtomasz
On 2014/03/12 05:09:14, kinuko wrote: > fileapi changes lgtm > > How much does this ...
6 years, 9 months ago (2014-03-12 05:19:31 UTC) #6
kinuko
On 2014/03/12 05:19:31, mtomasz wrote: > On 2014/03/12 05:09:14, kinuko wrote: > > fileapi changes ...
6 years, 9 months ago (2014-03-12 05:29:22 UTC) #7
benwells
idl lgtm
6 years, 9 months ago (2014-03-12 09:15:49 UTC) #8
mtomasz
@satorux: Ping.
6 years, 9 months ago (2014-03-26 05:52:50 UTC) #9
satorux1
The code looks pretty good and is nicely tested. great work! https://codereview.chromium.org/192573002/diff/100001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): ...
6 years, 9 months ago (2014-03-26 07:55:36 UTC) #10
satorux1
https://codereview.chromium.org/192573002/diff/100001/chrome/browser/chromeos/file_system_provider/service_unittest.cc File chrome/browser/chromeos/file_system_provider/service_unittest.cc (right): https://codereview.chromium.org/192573002/diff/100001/chrome/browser/chromeos/file_system_provider/service_unittest.cc#newcode25 chrome/browser/chromeos/file_system_provider/service_unittest.cc:25: class LoggingObserver : public Observer { class comment is ...
6 years, 9 months ago (2014-03-26 08:07:33 UTC) #11
mtomasz
https://codereview.chromium.org/192573002/diff/100001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/192573002/diff/100001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode248 chrome/browser/chromeos/file_manager/volume_manager.cc:248: static const bool kNotRemounting = false; On 2014/03/26 07:55:37, ...
6 years, 9 months ago (2014-03-26 09:21:43 UTC) #12
satorux1
LGTM https://codereview.chromium.org/192573002/diff/100001/chrome/browser/chromeos/file_manager/volume_manager.h File chrome/browser/chromeos/file_manager/volume_manager.h (right): https://codereview.chromium.org/192573002/diff/100001/chrome/browser/chromeos/file_manager/volume_manager.h#newcode198 chrome/browser/chromeos/file_manager/volume_manager.h:198: chromeos::file_system_provider::Service* file_system_provider_service_; On 2014/03/26 09:21:43, mtomasz OOO until ...
6 years, 9 months ago (2014-03-27 04:38:55 UTC) #13
mtomasz
https://codereview.chromium.org/192573002/diff/100001/chrome/browser/chromeos/file_manager/volume_manager.h File chrome/browser/chromeos/file_manager/volume_manager.h (right): https://codereview.chromium.org/192573002/diff/100001/chrome/browser/chromeos/file_manager/volume_manager.h#newcode198 chrome/browser/chromeos/file_manager/volume_manager.h:198: chromeos::file_system_provider::Service* file_system_provider_service_; On 2014/03/27 04:38:55, satorux1 wrote: > On ...
6 years, 9 months ago (2014-03-27 04:43:32 UTC) #14
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 9 months ago (2014-03-27 04:43:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/192573002/270001
6 years, 9 months ago (2014-03-27 04:44:11 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-27 07:56:35 UTC) #17
Message was sent while issue was closed.
Change committed as 259820

Powered by Google App Engine
This is Rietveld 408576698