blob: c65e6275f9fbf594531201ea153e708f97f69d19 [file] [log] [blame]
// Copyright (c) 2011 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 BASE_VALUE_CONVERSIONS_H_
#define BASE_VALUE_CONVERSIONS_H_
#pragma once
// This file contains methods to convert a |FilePath| to a |Value| and back.
#include "base/base_export.h"
class FilePath;
namespace base {
class StringValue;
class Value;
// The caller takes ownership of the returned value.
BASE_EXPORT StringValue* CreateFilePathValue(const FilePath& in_value);
BASE_EXPORT bool GetValueAsFilePath(const Value& value, FilePath* file_path);
} // namespace
#endif // BASE_VALUE_CONVERSIONS_H_