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

Unified Diff: content/renderer/pepper/null_file_system_callback_dispatcher.h

Issue 13726024: Refactor FileSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NON_EXPORTED_BASE Created 7 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: content/renderer/pepper/null_file_system_callback_dispatcher.h
diff --git a/content/renderer/pepper/null_file_system_callback_dispatcher.h b/content/renderer/pepper/null_file_system_callback_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..8551a0b0fedcb641c4011b7bc5a6c5973a7cf3aa
--- /dev/null
+++ b/content/renderer/pepper/null_file_system_callback_dispatcher.h
@@ -0,0 +1,54 @@
+// Copyright (c) 2013 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 CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
+#define CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/platform_file.h"
+#include "webkit/fileapi/file_system_callback_dispatcher.h"
+#include "webkit/quota/quota_types.h"
+
+class GURL;
+
+namespace base {
+class FilePath;
+class FileUtilProxy;
+struct PlatformFileInfo;
+} // namespace base
+
+namespace content {
+
+class NullFileSystemCallbackDispatcher
+ : public fileapi::FileSystemCallbackDispatcher {
+ public:
+ NullFileSystemCallbackDispatcher() {}
+
+ virtual ~NullFileSystemCallbackDispatcher(){}
+
+ virtual void DidSucceed() OVERRIDE;
+ virtual void DidReadMetadata(const base::PlatformFileInfo& file_info,
+ const base::FilePath& platform_path) OVERRIDE;
+ virtual void DidCreateSnapshotFile(
+ const base::PlatformFileInfo& file_info,
+ const base::FilePath& platform_path) OVERRIDE;
+ virtual void DidReadDirectory(
+ const std::vector<base::FileUtilProxy::Entry>& entries,
+ bool has_more) OVERRIDE;
+ virtual void DidOpenFileSystem(const std::string& name,
+ const GURL& root) OVERRIDE;
+ virtual void DidWrite(int64 bytes, bool complete) OVERRIDE;
+ virtual void DidOpenFile(base::PlatformFile file,
+ quota::QuotaLimitType quota_policy) OVERRIDE;
+ virtual void DidFail(base::PlatformFileError platform_error) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NullFileSystemCallbackDispatcher);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_PEPPER_NULL_FILE_SYSTEM_CALLBACK_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698