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

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

Issue 2933743002: Move chrome/browser/manifest to content/browser. (Closed)
Patch Set: rebased 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
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/manifest_icon_selector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 90%
rename from chrome/browser/manifest/manifest_icon_downloader.h
rename to content/public/browser/manifest_icon_downloader.h
index d1ed7de9716dce46197d3e576247d438081db9cb..5731e96f8854c9e5ea3cc646fa26737dc292c053 100644
--- a/chrome/browser/manifest/manifest_icon_downloader.h
+++ b/content/public/browser/manifest_icon_downloader.h
@@ -2,25 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_MANIFEST_MANIFEST_ICON_DOWNLOADER_H_
-#define CHROME_BROWSER_MANIFEST_MANIFEST_ICON_DOWNLOADER_H_
+#ifndef CONTENT_PUBLIC_BROWSER_MANIFEST_ICON_DOWNLOADER_H_
+#define CONTENT_PUBLIC_BROWSER_MANIFEST_ICON_DOWNLOADER_H_
#include <vector>
#include "base/callback_forward.h"
#include "base/macros.h"
+#include "content/common/content_export.h"
+class GURL;
class SkBitmap;
-namespace content {
-class WebContents;
-} // namespace content
-
namespace gfx {
class Size;
} // namespace gfx
-class GURL;
+namespace content {
+
+class WebContents;
// 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
@@ -28,7 +28,7 @@ class GURL;
// 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 +72,6 @@ class ManifestIconDownloader final {
DISALLOW_COPY_AND_ASSIGN(ManifestIconDownloader);
};
-#endif // CHROME_BROWSER_MANIFEST_MANIFEST_ICON_DOWNLOADER_H_
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_MANIFEST_ICON_DOWNLOADER_H_
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/manifest_icon_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698