summaryrefslogtreecommitdiffstats
path: root/base/value_conversions.h
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 09:51:50 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 09:51:50 +0000
commit8703b2b019d923536a9ad4a8eda2053aa7c7472e (patch)
treebe668fd7d482d45f80f6d7b074e7cf442318cb51 /base/value_conversions.h
parent2c48f9216fe490c9bfe33b6ed0fa063d6d67e220 (diff)
downloadchromium_src-8703b2b019d923536a9ad4a8eda2053aa7c7472e.zip
chromium_src-8703b2b019d923536a9ad4a8eda2053aa7c7472e.tar.gz
chromium_src-8703b2b019d923536a9ad4a8eda2053aa7c7472e.tar.bz2
Move FilePath <-> Value conversions into a separate file.
BUG=75276 TEST=none Review URL: http://codereview.chromium.org/6691011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78182 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/value_conversions.h')
-rw-r--r--base/value_conversions.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/base/value_conversions.h b/base/value_conversions.h
new file mode 100644
index 0000000..9678fc1
--- /dev/null
+++ b/base/value_conversions.h
@@ -0,0 +1,23 @@
+// 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.
+
+class FilePath;
+class StringValue;
+class Value;
+
+namespace base {
+
+// The caller takes ownership of the returned value.
+StringValue* CreateFilePathValue(const FilePath& in_value);
+bool GetValueAsFilePath(const Value& value, FilePath* file_path);
+
+} // namespace
+
+#endif // BASE_VALUE_CONVERSIONS_H_