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

Unified Diff: content/public/browser/manifest_icon_downloader.h

Issue 2933743002: Move chrome/browser/manifest to content/browser. (Closed)
Patch Set: Move chrome/browser/manifest to content/browser. Created 3 years, 6 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: content/public/browser/manifest_icon_downloader.h
diff --git a/chrome/browser/manifest/manifest_icon_downloader.h b/content/public/browser/manifest_icon_downloader.h
similarity index 95%
rename from chrome/browser/manifest/manifest_icon_downloader.h
rename to content/public/browser/manifest_icon_downloader.h
index d1ed7de9716dce46197d3e576247d438081db9cb..0b92fcced19dabf63756830e9b2e7b84074a89d6 100644
--- a/chrome/browser/manifest/manifest_icon_downloader.h
+++ b/content/public/browser/manifest_icon_downloader.h
@@ -9,6 +9,7 @@
#include "base/callback_forward.h"
#include "base/macros.h"
+#include "content/common/content_export.h"
class SkBitmap;
@@ -22,13 +23,14 @@ class Size;
class GURL;
+namespace content {
please use gerrit instead 2017/06/12 23:57:22 newline below
zino 2017/06/13 16:07:45 Done.
// Helper class which downloads the icon located at a specified. If the icon
// file contains multiple icons then it attempts to pick the one closest in size
// bigger than or equal to ideal_icon_size_in_px, taking into account the
// density of the device. If a bigger icon is chosen then, the icon is scaled
// down to be equal to ideal_icon_size_in_px. Smaller icons will be chosen down
// to the value specified by |minimum_icon_size_in_px|.
-class ManifestIconDownloader final {
+class CONTENT_EXPORT ManifestIconDownloader final {
public:
using IconFetchCallback = base::Callback<void(const SkBitmap&)>;
@@ -72,4 +74,6 @@ class ManifestIconDownloader final {
DISALLOW_COPY_AND_ASSIGN(ManifestIconDownloader);
};
+} // namespace content
+
#endif // CHROME_BROWSER_MANIFEST_MANIFEST_ICON_DOWNLOADER_H_

Powered by Google App Engine
This is Rietveld 408576698