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

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

Issue 255843002: Renamed FaviconHandlerDelegate to FaviconDriver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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: components/favicon/core/favicon_handler_delegate.h
diff --git a/components/favicon/core/favicon_handler_delegate.h b/components/favicon/core/favicon_handler_delegate.h
deleted file mode 100644
index ae70a18a6f0f33eb461682f632ccf8f755a9820b..0000000000000000000000000000000000000000
--- a/components/favicon/core/favicon_handler_delegate.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 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_FAVICON_HANDLER_DELEGATE_H_
-#define COMPONENTS_FAVICON_CORE_FAVICON_HANDLER_DELEGATE_H_
-
-class GURL;
-
-namespace content {
-// TODO(jif): Abstract the NavigationEntry (crbug.com/359598).
-class NavigationEntry;
-}
-
-// This class provides a delegate interface for a FaviconHandler. It allows the
-// FaviconHandler to ask its delegate for information or notify its delegate
-// about changes.
-class FaviconHandlerDelegate {
- public:
- // Returns the current NavigationEntry.
- // TODO(jif): Abstract the NavigationEntry (crbug.com/359598).
- virtual content::NavigationEntry* GetActiveEntry() = 0;
-
- // Starts the download for the given favicon. When finished, the delegate
- // will call OnDidDownloadFavicon() with the results.
- // Returns the unique id of the download request. The id will be passed
- // in OnDidDownloadFavicon().
- // Bitmaps with pixel sizes larger than |max_bitmap_size| are filtered out
- // from the bitmap results. If there are no bitmap results <=
- // |max_bitmap_size|, the smallest bitmap is resized to |max_bitmap_size| and
- // is the only result. A |max_bitmap_size| of 0 means unlimited.
- virtual int StartDownload(const GURL& url, int max_bitmap_size) = 0;
-
- // Notifies the delegate that the favicon for the active entry was updated.
- // |icon_url_changed| is true if a favicon with a different icon URL has
- // been selected since the previous call to NotifyFaviconUpdated().
- virtual void NotifyFaviconUpdated(bool icon_url_changed) = 0;
-
- // Returns whether the user is operating in an off-the-record context.
- virtual bool IsOffTheRecord() = 0;
-};
-
-#endif // COMPONENTS_FAVICON_CORE_FAVICON_HANDLER_DELEGATE_H_
« components/favicon/core/favicon_driver.h ('K') | « components/favicon/core/favicon_driver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698