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

Unified Diff: chrome/browser/local_discovery/storage/privet_filesystem_async_util.h

Issue 141703022: Support for file listing in privet local filesystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/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

Powered by Google App Engine
This is Rietveld 408576698