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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_
7
8 #include "base/file_path.h"
9 #include "base/platform_file.h"
10 #include "base/singleton.h"
11 #include "webkit/fileapi/file_system_file_util.h"
12
13 namespace base {
14 class Time; // For TouchFile. TODO remove comment when it's in.
15 }
16
17 namespace fileapi {
18
19 using base::PlatformFile;
20 using base::PlatformFileError;
21
22 class FileSystemOperationContext;
23
24 class ObfuscatedFileUtil : public FileSystemFileUtil {
25 public:
26 static ObfuscatedFileUtil* GetInstance();
27
28 virtual PlatformFileError CreateOrOpen(
29 FileSystemOperationContext* context,
30 const FilePath& file_path,
31 int file_flags,
32 PlatformFile* file_handle,
33 bool *created) OVERRIDE;
34 virtual PlatformFileError CreateDirectory(
35 FileSystemOperationContext* context,
36 const FilePath& file_path,
37 bool exclusive) OVERRIDE;
38 private:
39 ObfuscatedFileUtil() { }
40 friend struct DefaultSingletonTraits<ObfuscatedFileUtil>;
41 DISALLOW_COPY_AND_ASSIGN(ObfuscatedFileUtil);
42 };
43
44 } // namespace fileapi
45
46 #endif // WEBKIT_FILEAPI_OBFUSCATED_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698