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

Unified Diff: chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.h

Issue 10855094: launcher: Remove old files and update DEPS whitelist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/views/ash/launcher/launcher_app_icon_loader.h
diff --git a/chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.h b/chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.h
deleted file mode 100644
index abede2552a8406ce5e76331c598d9b249e33ebbe..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/ash/launcher/launcher_app_icon_loader.h
+++ /dev/null
@@ -1,55 +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_VIEWS_ASH_LAUNCHER_LAUNCHER_APP_ICON_LOADER_H_
-#define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_APP_ICON_LOADER_H_
-
-#include <map>
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/extensions/image_loading_tracker.h"
-#include "chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h"
-
-class Profile;
-
-namespace extensions {
-class Extension;
-}
-
-
-// Default implementation of LauncherUpdater::AppIconLoader that interacts
-// with the ExtensionService and ImageLoadingTracker to load images.
-class LauncherAppIconLoader : public ChromeLauncherController::AppIconLoader,
- public ImageLoadingTracker::Observer {
- public:
- LauncherAppIconLoader(Profile* profile, ChromeLauncherController* host);
- virtual ~LauncherAppIconLoader();
-
- // AppIconLoader:
- virtual void FetchImage(const std::string& id) OVERRIDE;
-
- // ImageLoadingTracker::Observer:
- virtual void OnImageLoaded(const gfx::Image& image,
- const std::string& extension_id,
- int index) OVERRIDE;
-
- private:
- typedef std::map<int, std::string> ImageLoaderIDToExtensionIDMap;
-
- Profile* profile_;
-
- // ChromeLauncherController we're associated with (and owned by).
- ChromeLauncherController* host_;
-
- // Used to load images.
- scoped_ptr<ImageLoadingTracker> image_loader_;
-
- // Maps from id from the ImageLoadingTracker to the extension id.
- ImageLoaderIDToExtensionIDMap map_;
-
- DISALLOW_COPY_AND_ASSIGN(LauncherAppIconLoader);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_APP_ICON_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698