| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_VALUE_CONVERSIONS_H_ | 5 #ifndef BASE_VALUE_CONVERSIONS_H_ |
| 6 #define BASE_VALUE_CONVERSIONS_H_ | 6 #define BASE_VALUE_CONVERSIONS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file contains methods to convert a |FilePath| to a |Value| and back. | 9 // This file contains methods to convert a |FilePath| to a |Value| and back. |
| 10 | 10 |
| 11 #include "base/base_api.h" | 11 #include "base/base_export.h" |
| 12 | 12 |
| 13 class FilePath; | 13 class FilePath; |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 | 16 |
| 17 class StringValue; | 17 class StringValue; |
| 18 class Value; | 18 class Value; |
| 19 | 19 |
| 20 // The caller takes ownership of the returned value. | 20 // The caller takes ownership of the returned value. |
| 21 BASE_API StringValue* CreateFilePathValue(const FilePath& in_value); | 21 BASE_EXPORT StringValue* CreateFilePathValue(const FilePath& in_value); |
| 22 BASE_API bool GetValueAsFilePath(const Value& value, FilePath* file_path); | 22 BASE_EXPORT bool GetValueAsFilePath(const Value& value, FilePath* file_path); |
| 23 | 23 |
| 24 } // namespace | 24 } // namespace |
| 25 | 25 |
| 26 #endif // BASE_VALUE_CONVERSIONS_H_ | 26 #endif // BASE_VALUE_CONVERSIONS_H_ |
| OLD | NEW |