| 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/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 | 11 |
| 11 namespace webkit_glue { | 12 namespace webkit_glue { |
| 12 | 13 |
| 13 class WebFileUtilitiesImpl : public WebKit::WebFileUtilities { | 14 class WEBKIT_GLUE_EXPORT WebFileUtilitiesImpl : |
| 15 NON_EXPORTED_BASE(public WebKit::WebFileUtilities) { |
| 14 public: | 16 public: |
| 15 WebFileUtilitiesImpl(); | 17 WebFileUtilitiesImpl(); |
| 16 virtual ~WebFileUtilitiesImpl(); | 18 virtual ~WebFileUtilitiesImpl(); |
| 17 | 19 |
| 18 // WebFileUtilities methods: | 20 // WebFileUtilities methods: |
| 19 virtual void revealFolderInOS(const WebKit::WebString& path); | 21 virtual void revealFolderInOS(const WebKit::WebString& path); |
| 20 virtual bool fileExists(const WebKit::WebString& path); | 22 virtual bool fileExists(const WebKit::WebString& path); |
| 21 virtual bool deleteFile(const WebKit::WebString& path); | 23 virtual bool deleteFile(const WebKit::WebString& path); |
| 22 virtual bool deleteEmptyDirectory(const WebKit::WebString& path); | 24 virtual bool deleteEmptyDirectory(const WebKit::WebString& path); |
| 23 virtual bool getFileSize(const WebKit::WebString& path, long long& result); | 25 virtual bool getFileSize(const WebKit::WebString& path, long long& result); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 46 sandbox_enabled_ = sandbox_enabled; | 48 sandbox_enabled_ = sandbox_enabled; |
| 47 } | 49 } |
| 48 | 50 |
| 49 protected: | 51 protected: |
| 50 bool sandbox_enabled_; | 52 bool sandbox_enabled_; |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 } // namespace webkit_glue | 55 } // namespace webkit_glue |
| 54 | 56 |
| 55 #endif // WEBFILEUTILITIES_IMPL_H_ | 57 #endif // WEBFILEUTILITIES_IMPL_H_ |
| OLD | NEW |