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

Unified Diff: chrome/browser/ui/webui/large_icon_source.h

Issue 2917733002: Remove unused chrome://large-icon (Closed)
Patch Set: 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/webui/browsing_history_handler.cc ('k') | chrome/browser/ui/webui/large_icon_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/large_icon_source.h
diff --git a/chrome/browser/ui/webui/large_icon_source.h b/chrome/browser/ui/webui/large_icon_source.h
deleted file mode 100644
index 6d48d908b87ca272040199a5ca59bf3124963108..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/large_icon_source.h
+++ /dev/null
@@ -1,76 +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 CHROME_BROWSER_UI_WEBUI_LARGE_ICON_SOURCE_H_
-#define CHROME_BROWSER_UI_WEBUI_LARGE_ICON_SOURCE_H_
-
-#include <memory>
-#include <string>
-
-#include "base/macros.h"
-#include "base/task/cancelable_task_tracker.h"
-#include "content/public/browser/url_data_source.h"
-
-namespace favicon {
-class LargeIconService;
-}
-
-namespace favicon_base {
-struct LargeIconResult;
-}
-
-// LargeIconSource services explicit chrome:// requests for large icons.
-//
-// Format:
-// chrome://large-icon/size/url
-//
-// Parameter:
-// 'size' Required (including trailing '/')
-// Positive integer to specify the large icon's size in pixels.
-// 'url' Optional
-// String to specify the page URL of the large icon.
-//
-// Example: chrome://large-icon/48/http://www.google.com/
-// This requests a 48x48 large icon for http://www.google.com.
-class LargeIconSource : public content::URLDataSource {
- public:
- // |large_icon_service| is owned by caller and may be null.
- explicit LargeIconSource(favicon::LargeIconService* large_icon_service);
-
- ~LargeIconSource() override;
-
- // content::URLDataSource implementation.
- std::string GetSource() const override;
- void StartDataRequest(
- const std::string& path,
- const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
- const content::URLDataSource::GotDataCallback& callback) override;
- std::string GetMimeType(const std::string&) const override;
- bool AllowCaching() const override;
- bool ShouldReplaceExistingSource() const override;
- bool ShouldServiceRequest(const GURL& url,
- content::ResourceContext* resource_context,
- int render_process_id) const override;
-
- private:
- // Called with results of large icon retrieval request.
- void OnLargeIconDataAvailable(
- const content::URLDataSource::GotDataCallback& callback,
- const GURL& url,
- int size,
- const favicon_base::LargeIconResult& bitmap_result);
-
- // Returns null to trigger "Not Found" response.
- void SendNotFoundResponse(
- const content::URLDataSource::GotDataCallback& callback);
-
- base::CancelableTaskTracker cancelable_task_tracker_;
-
- // Owned by client.
- favicon::LargeIconService* large_icon_service_;
-
- DISALLOW_COPY_AND_ASSIGN(LargeIconSource);
-};
-
-#endif // CHROME_BROWSER_UI_WEBUI_LARGE_ICON_SOURCE_H_
« no previous file with comments | « chrome/browser/ui/webui/browsing_history_handler.cc ('k') | chrome/browser/ui/webui/large_icon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698