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 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/Source/WebKit/chromium/public/WebFileUtilities.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileUtilities.h" |
10 #include "webkit/glue/webkit_glue_export.h" | 10 #include "webkit/glue/webkit_glue_export.h" |
11 | 11 |
12 namespace webkit_glue { | 12 namespace webkit_glue { |
13 | 13 |
14 class WEBKIT_GLUE_EXPORT WebFileUtilitiesImpl : | 14 class WEBKIT_GLUE_EXPORT WebFileUtilitiesImpl : |
15 NON_EXPORTED_BASE(public WebKit::WebFileUtilities) { | 15 NON_EXPORTED_BASE(public WebKit::WebFileUtilities) { |
16 public: | 16 public: |
17 WebFileUtilitiesImpl(); | 17 WebFileUtilitiesImpl(); |
18 virtual ~WebFileUtilitiesImpl(); | 18 virtual ~WebFileUtilitiesImpl(); |
19 | 19 |
20 // WebFileUtilities methods: | 20 // WebFileUtilities methods: |
21 virtual void revealFolderInOS(const WebKit::WebString& path); | |
22 virtual bool fileExists(const WebKit::WebString& path); | 21 virtual bool fileExists(const WebKit::WebString& path); |
23 virtual bool deleteFile(const WebKit::WebString& path); | 22 virtual bool deleteFile(const WebKit::WebString& path); |
24 virtual bool deleteEmptyDirectory(const WebKit::WebString& path); | 23 virtual bool deleteEmptyDirectory(const WebKit::WebString& path); |
25 virtual bool getFileSize(const WebKit::WebString& path, long long& result); | 24 virtual bool getFileSize(const WebKit::WebString& path, long long& result); |
26 virtual bool getFileModificationTime( | 25 virtual bool getFileModificationTime( |
27 const WebKit::WebString& path, | 26 const WebKit::WebString& path, |
28 double& result); | 27 double& result); |
29 virtual WebKit::WebString directoryName(const WebKit::WebString& path); | 28 virtual WebKit::WebString directoryName(const WebKit::WebString& path); |
30 virtual WebKit::WebString pathByAppendingComponent( | 29 virtual WebKit::WebString pathByAppendingComponent( |
31 const WebKit::WebString& path, const WebKit::WebString& component); | 30 const WebKit::WebString& path, const WebKit::WebString& component); |
(...skipping 16 matching lines...) Expand all Loading... |
48 sandbox_enabled_ = sandbox_enabled; | 47 sandbox_enabled_ = sandbox_enabled; |
49 } | 48 } |
50 | 49 |
51 protected: | 50 protected: |
52 bool sandbox_enabled_; | 51 bool sandbox_enabled_; |
53 }; | 52 }; |
54 | 53 |
55 } // namespace webkit_glue | 54 } // namespace webkit_glue |
56 | 55 |
57 #endif // WEBFILEUTILITIES_IMPL_H_ | 56 #endif // WEBFILEUTILITIES_IMPL_H_ |
OLD | NEW |