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

Unified Diff: chrome/browser/ui/intents/web_intent_icon_loader.h

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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: chrome/browser/ui/intents/web_intent_icon_loader.h
diff --git a/chrome/browser/ui/intents/web_intent_icon_loader.h b/chrome/browser/ui/intents/web_intent_icon_loader.h
deleted file mode 100644
index 76f4c7cf3e2b8645dc6930176413fa240a2b38bc..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/intents/web_intent_icon_loader.h
+++ /dev/null
@@ -1,62 +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_INTENTS_WEB_INTENT_ICON_LOADER_H_
-#define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_ICON_LOADER_H_
-
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/favicon/favicon_service.h"
-#include "chrome/common/cancelable_task_tracker.h"
-
-class Profile;
-class WebIntentPickerModel;
-
-namespace net {
- class URLFetcher;
-}
-
-namespace web_intents {
-
-class IconLoader {
- public:
- IconLoader(Profile* profile, WebIntentPickerModel* model);
- ~IconLoader();
-
- // Load the favicon associated with |url|.
- void LoadFavicon(const GURL& url);
-
- // Load an extension icon
- void LoadExtensionIcon(const GURL& url, const std::string& extension_id);
-
- private:
- // Called when a favicon is returned from the FaviconService.
- void OnFaviconDataAvailable(const GURL& url,
- const history::FaviconImageResult& image_result);
-
- // Called when a suggested extension's icon is fetched.
- void OnExtensionIconURLFetchComplete(const std::string& extension_id,
- const net::URLFetcher* source);
-
- // Called when an extension's icon is successfully decoded and resized.
- void OnExtensionIconAvailable(const std::string& extension_id,
- const gfx::Image& icon_image);
-
- // A weak pointer to the profile for the web contents.
- Profile* profile_;
-
- // A weak pointer to the model being updated.
- WebIntentPickerModel* model_;
-
- // Used to asynchronously load favicons.
- CancelableTaskTracker cancelable_task_tracker_;
-
- // Factory for weak pointers used in callbacks for async calls to load icon.
- base::WeakPtrFactory<IconLoader> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(IconLoader);
-};
-
-} // namespace web_intents;
-
-#endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_ICON_LOADER_H_
« no previous file with comments | « chrome/browser/ui/intents/native_file_picker_service.cc ('k') | chrome/browser/ui/intents/web_intent_icon_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698