Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_ | |
| 6 #define CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 #include "base/basictypes.h" | |
|
gab
2013/07/08 15:18:08
nit: empty space between 8-9
scottmg
2013/07/09 16:20:49
Done.
| |
| 10 | |
| 11 namespace importer { | |
| 12 | |
| 13 // Given raw image data, decodes the icon, re-sampling to the correct size as | |
| 14 // necessary, and re-encodes as PNG data in the given output vector. Returns | |
| 15 // true on success. | |
| 16 bool ReencodeFavicon(const unsigned char* src_data, | |
| 17 size_t src_len, | |
| 18 std::vector<unsigned char>* png_data); | |
| 19 | |
| 20 } // namespace importer | |
| 21 | |
| 22 #endif // CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_ | |
| OLD | NEW |