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

Unified Diff: chrome/browser/ui/ash/launcher/launcher_favicon_loader.h

Issue 2890983003: Remove AshPanelContents (Closed)
Patch Set: fix errors 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 | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/launcher/launcher_favicon_loader.h
diff --git a/chrome/browser/ui/ash/launcher/launcher_favicon_loader.h b/chrome/browser/ui/ash/launcher/launcher_favicon_loader.h
deleted file mode 100644
index 8f522501a892f62c1f0839190280e3fcb3c5348f..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/ash/launcher/launcher_favicon_loader.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2012 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 CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_
-#define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "content/public/common/favicon_url.h"
-
-class SkBitmap;
-
-namespace internal {
-class FaviconRawBitmapHandler;
-}
-
-namespace content {
-class WebContents;
-}
-
-// LauncherFaviconLoader handles updates to the list of favicon urls and
-// retrieves the appropriately sized favicon for panels in the Launcher.
-
-class LauncherFaviconLoader {
- public:
- class Delegate {
- public:
- virtual void FaviconUpdated() = 0;
-
- protected:
- virtual ~Delegate() {}
- };
-
- LauncherFaviconLoader(Delegate* delegate,
- content::WebContents* web_contents);
- virtual ~LauncherFaviconLoader();
-
- content::WebContents* web_contents() {
- return web_contents_;
- }
-
- // Returns an appropriately sized favicon for the Launcher. If none are
- // available will return an isNull bitmap.
- SkBitmap GetFavicon() const;
-
- // Returns true if the loader is waiting for downloads to finish.
- bool HasPendingDownloads() const;
-
- private:
- content::WebContents* web_contents_;
- std::unique_ptr<internal::FaviconRawBitmapHandler> favicon_handler_;
-
- DISALLOW_COPY_AND_ASSIGN(LauncherFaviconLoader);
-};
-
-#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/ash/launcher/launcher_favicon_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698