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

Unified Diff: chrome/utility/importer/favicon_reencode.h

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another gyp attempt Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/importer/favicon_reencode.h
diff --git a/chrome/browser/importer/reencode_favicon.h b/chrome/utility/importer/favicon_reencode.h
similarity index 52%
rename from chrome/browser/importer/reencode_favicon.h
rename to chrome/utility/importer/favicon_reencode.h
index b1b510afd696b6630907d1e37b18afab30de080c..5d6f64764ae098360edea9d2247c6c57d54a6f92 100644
--- a/chrome/browser/importer/reencode_favicon.h
+++ b/chrome/utility/importer/favicon_reencode.h
@@ -2,17 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_IMPORTER_REENCODE_FAVICON_H_
-#define CHROME_BROWSER_IMPORTER_REENCODE_FAVICON_H_
+#ifndef CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_
+#define CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_
#include <vector>
#include "base/basictypes.h"
+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 uint8* src_data, size_t src_len,
- std::vector<uint8>* png_data);
+bool ReencodeFavicon(const unsigned char* src_data,
+ size_t src_len,
+ std::vector<unsigned char>* png_data);
+
+} // namespace importer
-#endif // CHROME_BROWSER_IMPORTER_REENCODE_FAVICON_H_
+#endif // CHROME_UTILITY_IMPORTER_FAVICON_REENCODE_H_
« no previous file with comments | « chrome/utility/importer/external_process_importer_bridge.cc ('k') | chrome/utility/importer/favicon_reencode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698