1 // Copyright 2013 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.
5 #ifndef CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_
6 #define CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "third_party/WebKit/public/platform/WebFileSystem.h"
15 class WebFileWriterClient
;
20 class WebFileSystemImpl
: public WebKit::WebFileSystem
{
23 virtual ~WebFileSystemImpl() { }
25 // WebFileSystem implementation.
27 const WebKit::WebURL
& src_path
,
28 const WebKit::WebURL
& dest_path
,
29 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
31 const WebKit::WebURL
& src_path
,
32 const WebKit::WebURL
& dest_path
,
33 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
35 const WebKit::WebURL
& path
,
36 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
37 virtual void removeRecursively(
38 const WebKit::WebURL
& path
,
39 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
40 virtual void readMetadata(
41 const WebKit::WebURL
& path
,
42 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
43 virtual void createFile(
44 const WebKit::WebURL
& path
,
46 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
47 virtual void createDirectory(
48 const WebKit::WebURL
& path
,
50 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
51 virtual void fileExists(
52 const WebKit::WebURL
& path
,
53 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
54 virtual void directoryExists(
55 const WebKit::WebURL
& path
,
56 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
57 virtual void readDirectory(
58 const WebKit::WebURL
& path
,
59 WebKit::WebFileSystemCallbacks
*) OVERRIDE
;
60 virtual WebKit::WebFileWriter
* createFileWriter(
61 const WebKit::WebURL
& path
, WebKit::WebFileWriterClient
*) OVERRIDE
;
62 virtual void createSnapshotFileAndReadMetadata(
63 const WebKit::WebURL
& path
,
64 WebKit::WebFileSystemCallbacks
*);
67 } // namespace content
69 #endif // CONTENT_CHILD_FILEAPI_WEBFILESYSTEM_IMPL_H_