summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authormtomasz@chromium.org <mtomasz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 22:25:31 +0000
committermtomasz@chromium.org <mtomasz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 22:25:31 +0000
commit582f60ba6bb5ef030f9de06538266fda90cdf12c (patch)
treec6b134f70d2ea3771b7611e1f3e67e344e11c0de /extensions
parentefb2a4e8a6d5c546cc38eaf907e24bd3cee54e82 (diff)
downloadchromium_src-582f60ba6bb5ef030f9de06538266fda90cdf12c.zip
chromium_src-582f60ba6bb5ef030f9de06538266fda90cdf12c.tar.gz
chromium_src-582f60ba6bb5ef030f9de06538266fda90cdf12c.tar.bz2
[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 Review URL: https://codereview.chromium.org/194693002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions')
-rw-r--r--extensions/browser/extension_function_histogram_value.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/browser/extension_function_histogram_value.h b/extensions/browser/extension_function_histogram_value.h
index ec2a0ca..63197b2 100644
--- a/extensions/browser/extension_function_histogram_value.h
+++ b/extensions/browser/extension_function_histogram_value.h
@@ -774,6 +774,9 @@ enum HistogramValue {
BLUETOOTH_SET_SOCKET_PAUSED,
BLUETOOTH_GET_SOCKET,
BLUETOOTH_GET_SOCKETS,
+ FILESYSTEMPROVIDER_UNMOUNT,
+ FILESYSTEMPROVIDERINTERNAL_UNMOUNTREQUESTEDSUCCESS,
+ FILESYSTEMPROVIDERINTERNAL_UNMOUNTREQUESTEDERROR,
// Last entry: Add new entries above and ensure to update
// tools/metrics/histograms/histograms/histograms.xml.
ENUM_BOUNDARY