OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef WEBFILEUTILITIES_IMPL_H_ | 5 #ifndef WEBFILEUTILITIES_IMPL_H_ |
6 #define WEBFILEUTILITIES_IMPL_H_ | 6 #define WEBFILEUTILITIES_IMPL_H_ |
7 | 7 |
8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
9 #include "third_party/WebKit/WebKit/chromium/public/WebFileUtilities.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebFileUtilities.h" |
10 | 10 |
11 namespace webkit_glue { | 11 namespace webkit_glue { |
12 | 12 |
13 class WebFileUtilitiesImpl : public WebKit::WebFileUtilities { | 13 class WebFileUtilitiesImpl : public WebKit::WebFileUtilities { |
14 public: | 14 public: |
15 WebFileUtilitiesImpl(); | 15 WebFileUtilitiesImpl(); |
16 virtual ~WebFileUtilitiesImpl() { } | 16 virtual ~WebFileUtilitiesImpl(); |
17 | 17 |
18 // WebFileUtilities methods: | 18 // WebFileUtilities methods: |
19 virtual bool fileExists(const WebKit::WebString& path); | 19 virtual bool fileExists(const WebKit::WebString& path); |
20 virtual bool deleteFile(const WebKit::WebString& path); | 20 virtual bool deleteFile(const WebKit::WebString& path); |
21 virtual bool deleteEmptyDirectory(const WebKit::WebString& path); | 21 virtual bool deleteEmptyDirectory(const WebKit::WebString& path); |
22 virtual bool getFileSize(const WebKit::WebString& path, long long& result); | 22 virtual bool getFileSize(const WebKit::WebString& path, long long& result); |
23 virtual bool getFileModificationTime( | 23 virtual bool getFileModificationTime( |
24 const WebKit::WebString& path, | 24 const WebKit::WebString& path, |
25 double& result); | 25 double& result); |
26 virtual WebKit::WebString directoryName(const WebKit::WebString& path); | 26 virtual WebKit::WebString directoryName(const WebKit::WebString& path); |
(...skipping 18 matching lines...) Expand all Loading... |
45 sandbox_enabled_ = sandbox_enabled; | 45 sandbox_enabled_ = sandbox_enabled; |
46 } | 46 } |
47 | 47 |
48 protected: | 48 protected: |
49 bool sandbox_enabled_; | 49 bool sandbox_enabled_; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace webkit_glue | 52 } // namespace webkit_glue |
53 | 53 |
54 #endif // WEBFILEUTILITIES_IMPL_H_ | 54 #endif // WEBFILEUTILITIES_IMPL_H_ |
OLD | NEW |