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

Unified Diff: components/favicon/core/fallback_icon_service.h

Issue 2883053003: Delete unused chrome://fallback-icon/ handling (Closed)
Patch Set: Merge branch 'master' into searchbox3 Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/favicon/core/fallback_icon_client.h ('k') | components/favicon/core/fallback_icon_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/favicon/core/fallback_icon_service.h
diff --git a/components/favicon/core/fallback_icon_service.h b/components/favicon/core/fallback_icon_service.h
deleted file mode 100644
index 56b155e627025968cbaf0841fc838d33b4b04777..0000000000000000000000000000000000000000
--- a/components/favicon/core/fallback_icon_service.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_FAVICON_CORE_FALLBACK_ICON_SERVICE_H_
-#define COMPONENTS_FAVICON_CORE_FALLBACK_ICON_SERVICE_H_
-
-#include <vector>
-
-#include "base/macros.h"
-#include "components/keyed_service/core/keyed_service.h"
-
-class GURL;
-
-namespace gfx {
-class Canvas;
-}
-
-namespace favicon_base {
-struct FallbackIconStyle;
-}
-
-namespace favicon {
-
-class FallbackIconClient;
-
-// A service to provide methods to render fallback favicons.
-class FallbackIconService : public KeyedService {
- public:
- explicit FallbackIconService(FallbackIconClient* fallback_icon_client);
- ~FallbackIconService() override;
-
- // Renders a fallback icon synchronously and returns the bitmap. Returns an
- // empty std::vector on failure. |size| is icon width and height in pixels.
- std::vector<unsigned char> RenderFallbackIconBitmap(
- const GURL& icon_url,
- int size,
- const favicon_base::FallbackIconStyle& style);
-
- private:
- // Renders a fallback icon on |canvas| at position (|x|, |y|). |size| is icon
- // width and height in pixels.
- void DrawFallbackIcon(const GURL& icon_url,
- int size,
- const favicon_base::FallbackIconStyle& style,
- gfx::Canvas* canvas);
-
- FallbackIconClient* fallback_icon_client_;
-
- DISALLOW_COPY_AND_ASSIGN(FallbackIconService);
-};
-
-} // namespace favicon
-
-#endif // COMPONENTS_FAVICON_CORE_FALLBACK_ICON_SERVICE_H_
« no previous file with comments | « components/favicon/core/fallback_icon_client.h ('k') | components/favicon/core/fallback_icon_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698