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

Unified Diff: content/public/browser/manifest_icon_selector.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/manifest_icon_downloader.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/manifest_icon_selector.h
diff --git a/chrome/browser/manifest/manifest_icon_selector.h b/content/public/browser/manifest_icon_selector.h
similarity index 82%
rename from chrome/browser/manifest/manifest_icon_selector.h
rename to content/public/browser/manifest_icon_selector.h
index d502aaff74fd7d721bd5a8fb4a0f320b73aaf31a..f95ea6aa6782ea2ad8395f7b927a7a59c1eb7c70 100644
--- a/chrome/browser/manifest/manifest_icon_selector.h
+++ b/content/public/browser/manifest_icon_selector.h
@@ -2,17 +2,19 @@
// 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_SELECTOR_H_
-#define CHROME_BROWSER_MANIFEST_MANIFEST_ICON_SELECTOR_H_
+#ifndef CONTENT_PUBLIC_BROWSER_MANIFEST_ICON_SELECTOR_H_
+#define CONTENT_PUBLIC_BROWSER_MANIFEST_ICON_SELECTOR_H_
#include "base/macros.h"
#include "content/public/common/manifest.h"
#include "url/gurl.h"
+namespace content {
+
// Selects the square icon with the supported image MIME types and the specified
// icon purpose that most closely matches the size constraints.
// This follows very basic heuristics -- improvements are welcome.
-class ManifestIconSelector {
+class CONTENT_EXPORT ManifestIconSelector {
public:
// Runs the algorithm to find the best matching icon in the icons listed in
// the Manifest. Size is defined in pixels.
@@ -33,4 +35,6 @@ class ManifestIconSelector {
DISALLOW_IMPLICIT_CONSTRUCTORS(ManifestIconSelector);
};
-#endif // CHROME_BROWSER_MANIFEST_MANIFEST_ICON_SELECTOR_H_
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_MANIFEST_ICON_SELECTOR_H_
« no previous file with comments | « content/public/browser/manifest_icon_downloader.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698