summaryrefslogtreecommitdiffstats
path: root/chrome/common/file_system/webfilesystem_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/file_system/webfilesystem_impl.h')
-rw-r--r--chrome/common/file_system/webfilesystem_impl.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/chrome/common/file_system/webfilesystem_impl.h b/chrome/common/file_system/webfilesystem_impl.h
new file mode 100644
index 0000000..6892eac
--- /dev/null
+++ b/chrome/common/file_system/webfilesystem_impl.h
@@ -0,0 +1,65 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_FILE_SYSTEM_WEBFILESYSTEM_IMPL_H_
+#define CHROME_COMMON_FILE_SYSTEM_WEBFILESYSTEM_IMPL_H_
+
+#include "base/basictypes.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h"
+
+namespace WebKit {
+class WebFileWriter;
+class WebFileWriterClient;
+}
+
+class WebFileSystemImpl : public WebKit::WebFileSystem {
+ public:
+ WebFileSystemImpl();
+ virtual ~WebFileSystemImpl() { }
+
+ virtual void move(
+ const WebKit::WebString& src_path,
+ const WebKit::WebString& dest_path,
+ WebKit::WebFileSystemCallbacks*);
+
+ virtual void copy(
+ const WebKit::WebString& src_path,
+ const WebKit::WebString& dest_path,
+ WebKit::WebFileSystemCallbacks*);
+
+ virtual void remove(
+ const WebKit::WebString& path,
+ WebKit::WebFileSystemCallbacks*);
+
+ virtual void readMetadata(
+ const WebKit::WebString& path,
+ WebKit::WebFileSystemCallbacks*);
+
+ virtual void createFile(
+ const WebKit::WebString& path,
+ bool exclusive,
+ WebKit::WebFileSystemCallbacks*);
+
+ virtual void createDirectory(
+ const WebKit::WebString& path,
+ bool exclusive,
+ WebKit::WebFileSystemCallbacks*);
+
+ virtual void fileExists(
+ const WebKit::WebString& path,
+ WebKit::WebFileSystemCallbacks*);
+
+ virtual void directoryExists(
+ const WebKit::WebString& path,
+ WebKit::WebFileSystemCallbacks*);
+
+ virtual void readDirectory(
+ const WebKit::WebString& path,
+ WebKit::WebFileSystemCallbacks*);
+
+ virtual WebKit::WebFileWriter* createFileWriter(
+ const WebKit::WebString& path, WebKit::WebFileWriterClient*);
+};
+
+#endif // CHROME_COMMON_FILE_SYSTEM_WEBFILESYSTEM_IMPL_H_