| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_IMPORTER_REENCODE_FAVICON_H_ | 5 #ifndef CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_REENCODE_FAVICON_H_ | 6 #define CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 | 11 |
| 12 namespace importer { |
| 13 |
| 12 // Given raw image data, decodes the icon, re-sampling to the correct size as | 14 // Given raw image data, decodes the icon, re-sampling to the correct size as |
| 13 // necessary, and re-encodes as PNG data in the given output vector. Returns | 15 // necessary, and re-encodes as PNG data in the given output vector. Returns |
| 14 // true on success. | 16 // true on success. |
| 15 bool ReencodeFavicon(const uint8* src_data, size_t src_len, | 17 bool ReencodeFavicon(const unsigned char* src_data, |
| 16 std::vector<uint8>* png_data); | 18 size_t src_len, |
| 19 std::vector<unsigned char>* png_data); |
| 17 | 20 |
| 18 #endif // CHROME_BROWSER_IMPORTER_REENCODE_FAVICON_H_ | 21 } // namespace importer |
| 22 |
| 23 #endif // CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_ |
| OLD | NEW |