summaryrefslogtreecommitdiffstats
path: root/base/value_conversions.h
blob: 75246d136a0525d33e2def042e374580ec15e7e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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_api.h"

class FilePath;
class StringValue;
class Value;

namespace base {

// The caller takes ownership of the returned value.
BASE_API StringValue* CreateFilePathValue(const FilePath& in_value);
BASE_API bool GetValueAsFilePath(const Value& value, FilePath* file_path);

}  // namespace

#endif  // BASE_VALUE_CONVERSIONS_H_