| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_IMPL_H_ | 5 #ifndef CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_IMPL_H_ |
| 6 #define CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_IMPL_H_ | 6 #define CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" |
| 10 | 11 |
| 11 namespace WebKit { | 12 namespace WebKit { |
| 12 class WebURL; | 13 class WebURL; |
| 13 class WebFileWriter; | 14 class WebFileWriter; |
| 14 class WebFileWriterClient; | 15 class WebFileWriterClient; |
| 15 } | 16 } |
| 16 | 17 |
| 17 class WebFileSystemImpl : public WebKit::WebFileSystem { | 18 class WebFileSystemImpl : public WebKit::WebFileSystem { |
| 18 public: | 19 public: |
| 19 WebFileSystemImpl(); | 20 WebFileSystemImpl(); |
| 20 virtual ~WebFileSystemImpl() { } | 21 virtual ~WebFileSystemImpl() { } |
| 21 | 22 |
| 22 // New WebFileSystem overrides. | 23 // WebFileSystem implementation. |
| 23 virtual void move( | 24 virtual void move( |
| 24 const WebKit::WebURL& src_path, | 25 const WebKit::WebURL& src_path, |
| 25 const WebKit::WebURL& dest_path, | 26 const WebKit::WebURL& dest_path, |
| 26 WebKit::WebFileSystemCallbacks*); | 27 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 27 | |
| 28 virtual void copy( | 28 virtual void copy( |
| 29 const WebKit::WebURL& src_path, | 29 const WebKit::WebURL& src_path, |
| 30 const WebKit::WebURL& dest_path, | 30 const WebKit::WebURL& dest_path, |
| 31 WebKit::WebFileSystemCallbacks*); | 31 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 32 | |
| 33 virtual void remove( | 32 virtual void remove( |
| 34 const WebKit::WebURL& path, | 33 const WebKit::WebURL& path, |
| 35 WebKit::WebFileSystemCallbacks*); | 34 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 36 | |
| 37 virtual void removeRecursively( | 35 virtual void removeRecursively( |
| 38 const WebKit::WebURL& path, | 36 const WebKit::WebURL& path, |
| 39 WebKit::WebFileSystemCallbacks*); | 37 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 40 | |
| 41 virtual void readMetadata( | 38 virtual void readMetadata( |
| 42 const WebKit::WebURL& path, | 39 const WebKit::WebURL& path, |
| 43 WebKit::WebFileSystemCallbacks*); | 40 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 44 | |
| 45 virtual void createFile( | 41 virtual void createFile( |
| 46 const WebKit::WebURL& path, | 42 const WebKit::WebURL& path, |
| 47 bool exclusive, | 43 bool exclusive, |
| 48 WebKit::WebFileSystemCallbacks*); | 44 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 49 | |
| 50 virtual void createDirectory( | 45 virtual void createDirectory( |
| 51 const WebKit::WebURL& path, | 46 const WebKit::WebURL& path, |
| 52 bool exclusive, | 47 bool exclusive, |
| 53 WebKit::WebFileSystemCallbacks*); | 48 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 54 | |
| 55 virtual void fileExists( | 49 virtual void fileExists( |
| 56 const WebKit::WebURL& path, | 50 const WebKit::WebURL& path, |
| 57 WebKit::WebFileSystemCallbacks*); | 51 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 58 | |
| 59 virtual void directoryExists( | 52 virtual void directoryExists( |
| 60 const WebKit::WebURL& path, | 53 const WebKit::WebURL& path, |
| 61 WebKit::WebFileSystemCallbacks*); | 54 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 62 | |
| 63 virtual void readDirectory( | 55 virtual void readDirectory( |
| 64 const WebKit::WebURL& path, | 56 const WebKit::WebURL& path, |
| 65 WebKit::WebFileSystemCallbacks*); | 57 WebKit::WebFileSystemCallbacks*) OVERRIDE; |
| 66 | |
| 67 virtual WebKit::WebFileWriter* createFileWriter( | 58 virtual WebKit::WebFileWriter* createFileWriter( |
| 68 const WebKit::WebURL& path, WebKit::WebFileWriterClient*); | 59 const WebKit::WebURL& path, WebKit::WebFileWriterClient*) OVERRIDE; |
| 69 | |
| 70 // Old WebFileSystem overrides, soon to go away. | |
| 71 virtual void move( | |
| 72 const WebKit::WebString& src_path, | |
| 73 const WebKit::WebString& dest_path, | |
| 74 WebKit::WebFileSystemCallbacks*); | |
| 75 | |
| 76 virtual void copy( | |
| 77 const WebKit::WebString& src_path, | |
| 78 const WebKit::WebString& dest_path, | |
| 79 WebKit::WebFileSystemCallbacks*); | |
| 80 | |
| 81 virtual void remove( | |
| 82 const WebKit::WebString& path, | |
| 83 WebKit::WebFileSystemCallbacks*); | |
| 84 | |
| 85 virtual void removeRecursively( | |
| 86 const WebKit::WebString& path, | |
| 87 WebKit::WebFileSystemCallbacks*); | |
| 88 | |
| 89 virtual void readMetadata( | |
| 90 const WebKit::WebString& path, | |
| 91 WebKit::WebFileSystemCallbacks*); | |
| 92 | |
| 93 virtual void createFile( | |
| 94 const WebKit::WebString& path, | |
| 95 bool exclusive, | |
| 96 WebKit::WebFileSystemCallbacks*); | |
| 97 | |
| 98 virtual void createDirectory( | |
| 99 const WebKit::WebString& path, | |
| 100 bool exclusive, | |
| 101 WebKit::WebFileSystemCallbacks*); | |
| 102 | |
| 103 virtual void fileExists( | |
| 104 const WebKit::WebString& path, | |
| 105 WebKit::WebFileSystemCallbacks*); | |
| 106 | |
| 107 virtual void directoryExists( | |
| 108 const WebKit::WebString& path, | |
| 109 WebKit::WebFileSystemCallbacks*); | |
| 110 | |
| 111 virtual void readDirectory( | |
| 112 const WebKit::WebString& path, | |
| 113 WebKit::WebFileSystemCallbacks*); | |
| 114 | |
| 115 virtual WebKit::WebFileWriter* createFileWriter( | |
| 116 const WebKit::WebString& path, WebKit::WebFileWriterClient*); | |
| 117 }; | 60 }; |
| 118 | 61 |
| 119 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_IMPL_H_ | 62 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILESYSTEM_IMPL_H_ |
| OLD | NEW |