blob: 9678fc173e118e17a5dea3284e820cc5fe60deff [file] [log] [blame]
[email protected]8703b2b2011-03-15 09:51:501// Copyright (c) 2011 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 BASE_VALUE_CONVERSIONS_H_
6#define BASE_VALUE_CONVERSIONS_H_
7#pragma once
8
9// This file contains methods to convert a |FilePath| to a |Value| and back.
10
11class FilePath;
12class StringValue;
13class Value;
14
15namespace base {
16
17// The caller takes ownership of the returned value.
18StringValue* CreateFilePathValue(const FilePath& in_value);
19bool GetValueAsFilePath(const Value& value, FilePath* file_path);
20
21} // namespace
22
23#endif // BASE_VALUE_CONVERSIONS_H_