Chromium Code Reviews| Index: chrome/utility/importer/favicon_reencode.h |
| diff --git a/chrome/utility/importer/favicon_reencode.h b/chrome/utility/importer/favicon_reencode.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2e9496bbe77810ea1558c8ead5414200c4d0a047 |
| --- /dev/null |
| +++ b/chrome/utility/importer/favicon_reencode.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2013 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 CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_ |
| +#define CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_ |
| + |
| +#include <vector> |
| +#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.
|
| + |
| +namespace importer { |
| + |
| +// Given raw image data, decodes the icon, re-sampling to the correct size as |
| +// necessary, and re-encodes as PNG data in the given output vector. Returns |
| +// true on success. |
| +bool ReencodeFavicon(const unsigned char* src_data, |
| + size_t src_len, |
| + std::vector<unsigned char>* png_data); |
| + |
| +} // namespace importer |
| + |
| +#endif // CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_ |