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

Unified Diff: webkit/fileapi/isolated_context.h

Issue 10837217: Add RevokeFileSystem back to IsolatedContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years, 4 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
« no previous file with comments | « no previous file | webkit/fileapi/isolated_context.cc » ('j') | webkit/fileapi/isolated_context.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/isolated_context.h
diff --git a/webkit/fileapi/isolated_context.h b/webkit/fileapi/isolated_context.h
index 5593c629877c56226a9b214e50dfe70085f8c051..3888dfecd3ab5ae3462e35fffa20ba3c12f985e6 100644
--- a/webkit/fileapi/isolated_context.h
+++ b/webkit/fileapi/isolated_context.h
@@ -101,6 +101,10 @@ class FILEAPI_EXPORT IsolatedContext {
const FilePath& path,
std::string* register_name);
+ // Revokes the filesystem |filesystem_id|
+ // Returns false if the |filesystem_id| is not (no longer) registered.
+ bool RevokeFileSystem(const std::string& filesystem_id);
+
// Revokes all filesystem(s) registered for the given path.
// This is assumed to be called when the registered path becomes
// globally invalid, e.g. when a device for the path is detached.
@@ -209,6 +213,10 @@ class FILEAPI_EXPORT IsolatedContext {
IsolatedContext();
~IsolatedContext();
+ // Unregisters a file system of given |filesystem_id|. Must be called with
+ // lock_ held. Returns true if the file system is unregistered.
+ bool UnregisterFileSystem(const std::string& filesystem_id);
+
// Returns a new filesystem_id. Called with lock.
std::string GetNewFileSystemId() const;
« no previous file with comments | « no previous file | webkit/fileapi/isolated_context.cc » ('j') | webkit/fileapi/isolated_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698