From b777b3386e10d38944cc717e4192b7858cbdc7fe Mon Sep 17 00:00:00 2001 From: "zelidrag@chromium.org" Date: Sat, 16 Apr 2011 04:01:08 +0000 Subject: File API changes needed for safely passing user selected file entities from the file browser component extension to a 3rd party extension. BUG=chromium-os:11996 TEST=FileAccessPermissionsTest.FileAccessChecks Review URL: http://codereview.chromium.org/6810037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81860 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/quota/special_storage_policy.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'webkit/quota') diff --git a/webkit/quota/special_storage_policy.h b/webkit/quota/special_storage_policy.h index e694c4c..d9f1728 100644 --- a/webkit/quota/special_storage_policy.h +++ b/webkit/quota/special_storage_policy.h @@ -5,6 +5,8 @@ #ifndef WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ #define WEBKIT_QUOTA_SPECIAL_STORAGE_POLICY_H_ +#include + #include "base/memory/ref_counted.h" class GURL; @@ -27,8 +29,9 @@ class SpecialStoragePolicy // Unlimited storage is not subject to 'quotas'. virtual bool IsStorageUnlimited(const GURL& origin) = 0; - // Local file system access allowed via File API. - virtual bool IsLocalFileSystemAccessAllowed(const GURL& origin) = 0; + // Checks if extension identified with |extension_id| is registered as + // file handler. + virtual bool IsFileHandler(const std::string& extension_id) = 0; protected: friend class base::RefCountedThreadSafe; -- cgit v1.1