blob: 0693df52d88c618794f21f6f06f78bc1d2b0d3bd [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_FILE_PATH_CONVERSION_H_
#define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_FILE_PATH_CONVERSION_H_
#include "third_party/blink/public/platform/web_common.h"
namespace base {
class FilePath;
}
#if INSIDE_BLINK
namespace WTF {
class String;
} // namespace WTF
#endif
namespace blink {
class WebString;
BLINK_PLATFORM_EXPORT base::FilePath WebStringToFilePath(const WebString&);
BLINK_PLATFORM_EXPORT WebString FilePathToWebString(const base::FilePath&);
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT base::FilePath StringToFilePath(const WTF::String& str);
BLINK_PLATFORM_EXPORT WTF::String FilePathToString(const base::FilePath&);
#endif
} // namespace blink
#endif // THIRD_PARTY_BLINK_PUBLIC_PLATFORM_FILE_PATH_CONVERSION_H_