| 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_NIX_MIME_UTIL_XDG_H_ | 5 #ifndef BASE_NIX_MIME_UTIL_XDG_H_ |
| 6 #define BASE_NIX_MIME_UTIL_XDG_H_ | 6 #define BASE_NIX_MIME_UTIL_XDG_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include <string> | 8 #include <string> |
| 10 | 9 |
| 11 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| 12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 13 | 12 |
| 14 class FilePath; | 13 class FilePath; |
| 15 | 14 |
| 16 namespace base { | 15 namespace base { |
| 17 namespace nix { | 16 namespace nix { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 35 // Gets the file name for an icon given the mime type and icon pixel size. | 34 // Gets the file name for an icon given the mime type and icon pixel size. |
| 36 // Where an icon is a square image of |size| x |size|. | 35 // Where an icon is a square image of |size| x |size|. |
| 37 // This will try to find the closest matching icon. If that's not available, | 36 // This will try to find the closest matching icon. If that's not available, |
| 38 // then a generic icon, and finally an empty FilePath if all else fails. | 37 // then a generic icon, and finally an empty FilePath if all else fails. |
| 39 BASE_EXPORT FilePath GetMimeIcon(const std::string& mime_type, size_t size); | 38 BASE_EXPORT FilePath GetMimeIcon(const std::string& mime_type, size_t size); |
| 40 | 39 |
| 41 } // namespace nix | 40 } // namespace nix |
| 42 } // namespace base | 41 } // namespace base |
| 43 | 42 |
| 44 #endif // BASE_NIX_MIME_UTIL_XDG_H_ | 43 #endif // BASE_NIX_MIME_UTIL_XDG_H_ |
| OLD | NEW |