// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_RENDERER_WEBFILEUTILITIES_IMPL_H_ #define CONTENT_RENDERER_WEBFILEUTILITIES_IMPL_H_ #include "content/common/content_export.h" #include "third_party/blink/public/platform/web_file_info.h" #include "third_party/blink/public/platform/web_file_utilities.h" namespace content { class CONTENT_EXPORT WebFileUtilitiesImpl : public blink::WebFileUtilities { public: WebFileUtilitiesImpl(); virtual ~WebFileUtilitiesImpl(); // WebFileUtilities methods: bool GetFileInfo(const blink::WebString& path, blink::WebFileInfo& result) override; blink::WebString DirectoryName(const blink::WebString& path) override; blink::WebString BaseName(const blink::WebString& path) override; blink::WebURL FilePathToURL(const blink::WebString& path) override; void set_sandbox_enabled(bool sandbox_enabled) { sandbox_enabled_ = sandbox_enabled; } protected: bool sandbox_enabled_; }; } // namespace content #endif // CONTENT_RENDERER_WEBFILEUTILITIES_IMPL_H_