Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: chrome/browser/importer/importer_util.h

Issue 14575004: Extract BookmarksFileImporter from Firefox2Importer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test cleanup Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_IMPORTER_IMPORTER_UTIL_H_
6 #define CHROME_BROWSER_IMPORTER_IMPORTER_UTIL_H_
7
8 #include <cstddef>
9 #include <vector>
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_BROWSER_IMPORTER_IMPORTER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698