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

Unified Diff: webkit/fileapi/obfuscated_file_util.h

Issue 6286038: Add initial code to do filename munging in the FileSystem.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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: webkit/fileapi/obfuscated_file_util.h
===================================================================
--- webkit/fileapi/obfuscated_file_util.h (revision 0)
+++ webkit/fileapi/obfuscated_file_util.h (revision 0)
@@ -0,0 +1,46 @@
+// Copyright (c) 2011 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 WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_
+#define WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_
+
+#include "base/file_path.h"
+#include "base/platform_file.h"
+#include "base/singleton.h"
+#include "webkit/fileapi/file_system_file_util.h"
+
+namespace base {
+class Time; // For TouchFile. TODO remove comment when it's in.
+}
+
+namespace fileapi {
+
+using base::PlatformFile;
+using base::PlatformFileError;
+
+class FileSystemOperationContext;
+
+class ObfuscatedFileUtil : public FileSystemFileUtil {
+ public:
+ static ObfuscatedFileUtil* GetInstance();
+
+ virtual PlatformFileError CreateOrOpen(
+ FileSystemOperationContext* context,
+ const FilePath& file_path,
+ int file_flags,
+ PlatformFile* file_handle,
+ bool *created) OVERRIDE;
+ virtual PlatformFileError CreateDirectory(
+ FileSystemOperationContext* context,
+ const FilePath& file_path,
+ bool exclusive) OVERRIDE;
+ private:
+ ObfuscatedFileUtil() { }
+ friend struct DefaultSingletonTraits<ObfuscatedFileUtil>;
+ DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil);
+};
+
+} // namespace fileapi
+
+#endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_
Property changes on: webkit\fileapi\obfuscated_file_util.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698