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

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed)

Created:
7 years, 8 months ago by kinuko
Modified:
7 years, 8 months ago
CC:
chromium-reviews, tzik+watch_chromium.org, jam, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, tbarzic
Visibility:
Public.

Description

Make MountPointProvider pluggable from outside webkit/fileapi Currently we have some layering leakages under webkit/ because we have several FS modules (e.g. media modules) that should not be known by WebKit/FileAPI (or content) layer. Also some module implementors are forced to add extra glue interfaces just to across layering boundaries from webkit. This patch changes to: - Add CanHandleType method to each MountPointProvider - Make FileSystemContext's ctor take additional MountPointProviders and MountPoints, so that FS module implementors can implement their own provider outside webkit/ and plug it into FileAPI layer. This is the 1st cut of a couple of planned changes. Brief change plan (internal): https://docs.google.com/a/google.com/document/d/1XEtX0OO_RIA_c0KuKvd9yqK5l3XtsTulwXs3c-mAQ1o/view BUG=175936 TEST=content_unittests:.*File.* TEST=content_unittests:.*MountPointProvider.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194747

Patch Set 1 #

Total comments: 12

Patch Set 2 : #

Total comments: 2

Patch Set 3 : build fix etc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -205 lines) Patch
M chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/fileapi/browser_file_system_helper.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/blob/blob_url_request_job_unittest.cc View 1 2 chunks +3 lines, -10 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.h View 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M webkit/fileapi/copy_or_move_file_validator_unittest.cc View 1 2 chunks +2 lines, -9 lines 0 comments Download
M webkit/fileapi/file_system_context.h View 1 2 6 chunks +21 lines, -7 lines 0 comments Download
M webkit/fileapi/file_system_context.cc View 1 8 chunks +49 lines, -40 lines 0 comments Download
M webkit/fileapi/file_system_context_unittest.cc View 1 2 4 chunks +6 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job_unittest.cc View 1 2 chunks +3 lines, -10 lines 0 comments Download
M webkit/fileapi/file_system_file_stream_reader_unittest.cc View 1 3 chunks +3 lines, -13 lines 0 comments Download
M webkit/fileapi/file_system_mount_point_provider.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/fileapi/file_system_mount_point_provider_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/fileapi/file_system_quota_client_unittest.cc View 1 2 chunks +3 lines, -10 lines 0 comments Download
M webkit/fileapi/file_system_types.h View 3 chunks +9 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_url_request_job_unittest.cc View 1 3 chunks +2 lines, -12 lines 0 comments Download
M webkit/fileapi/file_system_util.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/fileapi/isolated_file_util_unittest.cc View 1 3 chunks +3 lines, -9 lines 0 comments Download
M webkit/fileapi/isolated_mount_point_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/fileapi/isolated_mount_point_provider.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M webkit/fileapi/local_file_system_cross_operation_unittest.cc View 1 2 chunks +3 lines, -10 lines 0 comments Download
M webkit/fileapi/local_file_system_operation_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M webkit/fileapi/local_file_system_operation_write_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M webkit/fileapi/local_file_system_quota_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M webkit/fileapi/local_file_system_test_helper.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/local_file_system_test_helper.cc View 1 5 chunks +4 lines, -22 lines 0 comments Download
M webkit/fileapi/media/native_media_file_util_unittest.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
A webkit/fileapi/mock_file_system_context.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
A webkit/fileapi/mock_file_system_context.cc View 1 1 chunk +35 lines, -0 lines 0 comments Download
M webkit/fileapi/obfuscated_file_util_unittest.cc View 1 2 chunks +4 lines, -7 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.h View 2 chunks +2 lines, -1 line 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.cc View 2 chunks +5 lines, -1 line 0 comments Download
M webkit/fileapi/sandbox_quota_observer.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M webkit/fileapi/syncable/canned_syncable_file_system.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/fileapi/test_mount_point_provider.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/fileapi/test_mount_point_provider.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/fileapi/upload_file_system_file_element_reader_unittest.cc View 1 2 chunks +4 lines, -10 lines 0 comments Download
M webkit/support/webkit_support.gypi View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/simple_file_system.cc View 1 2 chunks +3 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
kinuko
Can you take the first look? (I'll write-up an internal change plan / design doc ...
7 years, 8 months ago (2013-04-17 09:43:23 UTC) #1
kinuko
On 2013/04/17 09:43:23, kinuko wrote: > Can you take the first look? (I'll write-up an ...
7 years, 8 months ago (2013-04-17 10:49:49 UTC) #2
tzik
https://codereview.chromium.org/14096022/diff/1/webkit/chromeos/fileapi/cros_mount_point_provider_unittest.cc File webkit/chromeos/fileapi/cros_mount_point_provider_unittest.cc (right): https://codereview.chromium.org/14096022/diff/1/webkit/chromeos/fileapi/cros_mount_point_provider_unittest.cc#newcode361 webkit/chromeos/fileapi/cros_mount_point_provider_unittest.cc:361: TEST(CrosMountPointProvider, CrosMountPonitProviderKeepsMountPointsAlive) { s/Ponit/Point/ https://codereview.chromium.org/14096022/diff/1/webkit/fileapi/file_system_context.cc File webkit/fileapi/file_system_context.cc (right): https://codereview.chromium.org/14096022/diff/1/webkit/fileapi/file_system_context.cc#newcode155 ...
7 years, 8 months ago (2013-04-17 12:06:03 UTC) #3
kinuko
Updated the patch. I also reverted some CrOS-specific changes (probably we'd better do that in ...
7 years, 8 months ago (2013-04-17 14:27:29 UTC) #4
kinuko
Avi: can you take a look at 2-line changes in content/content_tests.gypi? Thanks!
7 years, 8 months ago (2013-04-17 14:53:17 UTC) #5
Avi (use Gerrit)
lgtm stampity stamp
7 years, 8 months ago (2013-04-17 15:01:57 UTC) #6
tzik
lgtm
7 years, 8 months ago (2013-04-18 00:39:00 UTC) #7
kinuko
Kinaba-san and/or Satoru: can you take a look at the changes in: chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc webkit/chromeos/fileapi/cros_mount_point_provider.* Not ...
7 years, 8 months ago (2013-04-18 00:45:49 UTC) #8
kinaba
lgtm
7 years, 8 months ago (2013-04-18 01:08:16 UTC) #9
kinuko
7 years, 8 months ago (2013-04-18 01:46:43 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 manually as r194747 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698