Index: chrome/browser/local_discovery/storage/privet_filesystem_async_util.h |
diff --git a/chrome/browser/local_discovery/storage/privet_filesystem_async_util.h b/chrome/browser/local_discovery/storage/privet_filesystem_async_util.h |
index 7d8ca47b654e1599253b9d75df463111c92243ca..dbf3f0f1628c62bf545a312967554f1f724c4fd0 100644 |
--- a/chrome/browser/local_discovery/storage/privet_filesystem_async_util.h |
+++ b/chrome/browser/local_discovery/storage/privet_filesystem_async_util.h |
@@ -5,12 +5,21 @@ |
#ifndef CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ASYNC_UTIL_H_ |
#define CHROME_BROWSER_LOCAL_DISCOVERY_STORAGE_PRIVET_FILESYSTEM_ASYNC_UTIL_H_ |
+#include <set> |
+ |
+#include "chrome/browser/local_discovery/storage/privet_filesystem_operations.h" |
+#include "content/public/browser/browser_context.h" |
#include "webkit/browser/fileapi/async_file_util.h" |
namespace local_discovery { |
-class PrivetFileSystemAsyncUtil : public fileapi::AsyncFileUtil { |
+class PrivetFileSystemAsyncUtil |
+ : public fileapi::AsyncFileUtil, |
+ public PrivetFileSystemAsyncOperationContainer { |
public: |
+ explicit PrivetFileSystemAsyncUtil(content::BrowserContext* browser_context); |
+ virtual ~PrivetFileSystemAsyncUtil(); |
+ |
virtual void CreateOrOpen( |
scoped_ptr<fileapi::FileSystemOperationContext> context, |
const fileapi::FileSystemURL& url, |
@@ -79,6 +88,16 @@ class PrivetFileSystemAsyncUtil : public fileapi::AsyncFileUtil { |
scoped_ptr<fileapi::FileSystemOperationContext> context, |
const fileapi::FileSystemURL& url, |
const CreateSnapshotFileCallback& callback) OVERRIDE; |
+ |
+ |
+ virtual void RemoveOperation( |
+ PrivetFileSystemAsyncOperation* operation) OVERRIDE; |
+ virtual void RemoveAllOperations() OVERRIDE; |
+ |
+ private: |
+ |
+ std::set<PrivetFileSystemAsyncOperation*> async_operations_; |
+ content::BrowserContext* browser_context_; |
}; |
} // namespace local_discovery |