1 // Copyright 2014 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. 4 5 #ifndef CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_ 6 #define CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_ 7 8 #include "content/common/content_export.h" 9 #include "third_party/WebKit/public/platform/WebFileInfo.h" 10 #include "third_party/WebKit/public/platform/WebFileUtilities.h" 11 12 namespace content { 13 14 class CONTENT_EXPORT WebFileUtilitiesImpl 15 : NON_EXPORTED_BASE(public blink::WebFileUtilities) { 16 public: 17 WebFileUtilitiesImpl(); 18 virtual ~WebFileUtilitiesImpl(); 19 20 // WebFileUtilities methods: 21 virtual bool getFileInfo(const blink::WebString& path, 22 blink::WebFileInfo& result); 23 virtual blink::WebString directoryName(const blink::WebString& path); 24 virtual blink::WebString baseName(const blink::WebString& path); 25 virtual blink::WebURL filePathToURL(const blink::WebString& path); 26 27 void set_sandbox_enabled(bool sandbox_enabled) { 28 sandbox_enabled_ = sandbox_enabled; 29 } 30 31 protected: 32 bool sandbox_enabled_; 33 }; 34 35 } // namespace content 36 37 #endif // CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_ 38