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

Unified Diff: chrome/browser/extensions/extension_special_storage_policy.h

Issue 6810037: File API changes needed for safely passing user selected file entities from the file browser comp... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_special_storage_policy.h
===================================================================
--- chrome/browser/extensions/extension_special_storage_policy.h (revision 81835)
+++ chrome/browser/extensions/extension_special_storage_policy.h (working copy)
@@ -26,7 +26,7 @@
// data remover. These methods are safe to call on any thread.
virtual bool IsStorageProtected(const GURL& origin);
virtual bool IsStorageUnlimited(const GURL& origin);
- virtual bool IsLocalFileSystemAccessAllowed(const GURL& origin);
+ virtual bool IsFileHandler(const std::string& extension_id);
// Methods used by the ExtensionService to populate this class.
void GrantRightsForExtension(const Extension* extension);
@@ -40,6 +40,7 @@
~SpecialCollection();
bool Contains(const GURL& origin);
+ bool ContainsExtension(const std::string& extension_id);
void Add(const Extension* extension);
void Remove(const Extension* extension);
void Clear();
@@ -48,7 +49,7 @@
typedef std::map<GURL, bool> CachedResults;
typedef std::map<std::string, scoped_refptr<const Extension> > Extensions;
Extensions extensions_;
- CachedResults cached_resuts_;
+ CachedResults cached_results_;
};
virtual ~ExtensionSpecialStoragePolicy();
@@ -56,7 +57,7 @@
base::Lock lock_; // Synchronize all access to the collections.
SpecialCollection protected_apps_;
SpecialCollection unlimited_extensions_;
- SpecialCollection local_filesystem_extensions_;
+ SpecialCollection file_handler_extensions_;
};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SPECIAL_STORAGE_POLICY_H_
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/extension_special_storage_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698