blob: 3357eb6c48172ca6caf9a1ad0864985e5287d07f [file] [log] [blame]
// 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_CHILD_WEBFILEUTILITIES_IMPL_H_
#define CONTENT_CHILD_WEBFILEUTILITIES_IMPL_H_
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebFileInfo.h"
#include "third_party/WebKit/public/platform/WebFileUtilities.h"
namespace content {
class CONTENT_EXPORT WebFileUtilitiesImpl
: NON_EXPORTED_BASE(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_CHILD_WEBFILEUTILITIES_IMPL_H_