|
[fsp] Add requestUnmount() method together with the request manager.
This patch introduces a requestUnmount() method, which is invoked by Files app's private api, and then emits an onUnmountRequested event. When the providing extension receives it, it should handle unmounting, and call the success or failure callback.
Unmounting is the first implemented request in the file system provider implementation. Other requests will be: listing directories, fetching files, etc. These requests are invoked by Files app and are routed to the providing extension, then the response goes back to Files app.
To make the code clean, a RequestManager class has been introduced. It acts as a glue between requests as responses.
TEST=unit_tests: *FileSystemProviderServiceTest.Unmount*, *FileSystemProviderRequestManagerTest*; browser_tests: *FileSystemProviderApiTest.Unmount*
BUG= 248427
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262840
Total comments: 21
Total comments: 14
Total comments: 6
Total comments: 9
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1351 lines, -122 lines) |
Patch |
|
M |
chrome/browser/chromeos/extensions/file_manager/private_api_mount.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+25 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.h
|
View
|
1
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+140 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc
|
View
|
1
6
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/file_manager/volume_manager.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/file_manager/volume_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+28 lines, -11 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/file_system_provider/observer.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
|
A |
chrome/browser/chromeos/file_system_provider/request_manager.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+88 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/chromeos/file_system_provider/request_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+110 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/chromeos/file_system_provider/request_manager_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+348 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/file_system_provider/service.h
|
View
|
1
2
3
4
|
3 chunks |
+44 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/file_system_provider/service.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
7 chunks |
+128 lines, -14 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/file_system_provider/service_unittest.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+84 lines, -54 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser_chromeos.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/extensions/api/_api_features.json
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/extensions/api/api.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/extensions/api/file_system_provider.idl
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+58 lines, -1 line |
0 comments
|
Download
|
|
A |
chrome/common/extensions/api/file_system_provider_internal.idl
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js
|
View
|
1
|
2 chunks |
+51 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/test/data/extensions/api_test/file_system_provider/mount/test.js
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
|
A + |
chrome/test/data/extensions/api_test/file_system_provider/unmount/manifest.json
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
chrome/test/data/extensions/api_test/file_system_provider/unmount/test.js
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+123 lines, -0 lines |
0 comments
|
Download
|
|
M |
extensions/browser/extension_function_histogram_value.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
13
15
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/metrics/histograms/histograms.xml
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
Total messages: 71 (0 generated)
|