Pass CreateDirectory errors up to IndexedDB.
[chromium-blink-merge.git] / content / child / fileapi / webfilesystem_impl.h
blob2bcf535c1d83157365bf990881b35c1fbbcf0a5e
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"
12 namespace WebKit {
13 class WebURL;
14 class WebFileWriter;
15 class WebFileWriterClient;
18 namespace content {
20 class WebFileSystemImpl : public WebKit::WebFileSystem {
21 public:
22 WebFileSystemImpl();
23 virtual ~WebFileSystemImpl() { }
25 // WebFileSystem implementation.
26 virtual void move(
27 const WebKit::WebURL& src_path,
28 const WebKit::WebURL& dest_path,
29 WebKit::WebFileSystemCallbacks*) OVERRIDE;
30 virtual void copy(
31 const WebKit::WebURL& src_path,
32 const WebKit::WebURL& dest_path,
33 WebKit::WebFileSystemCallbacks*) OVERRIDE;
34 virtual void remove(
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,
45 bool exclusive,
46 WebKit::WebFileSystemCallbacks*) OVERRIDE;
47 virtual void createDirectory(
48 const WebKit::WebURL& path,
49 bool exclusive,
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_