| Index: chrome/browser/ui/views/aura/launcher/launcher_icon_loader.h
|
| diff --git a/chrome/browser/ui/views/aura/launcher/launcher_icon_loader.h b/chrome/browser/ui/views/aura/launcher/launcher_icon_loader.h
|
| deleted file mode 100644
|
| index a238b23f1d6c3f6f5296653f0a4cbd10ce1129ae..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/ui/views/aura/launcher/launcher_icon_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_VIEWS_AURA_LAUNCHER_LAUNCHER_ICON_LOADER_H_
|
| -#define CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_ICON_LOADER_H_
|
| -#pragma once
|
| -
|
| -#include <map>
|
| -#include <string>
|
| -
|
| -#include "base/memory/scoped_ptr.h"
|
| -#include "chrome/browser/extensions/image_loading_tracker.h"
|
| -#include "chrome/browser/ui/views/aura/launcher/chrome_launcher_delegate.h"
|
| -
|
| -class Extension;
|
| -class Profile;
|
| -
|
| -// Default implementation of LauncherUpdater::AppIconLoader that interacts
|
| -// with the ExtensionService and ImageLoadingTracker to load images.
|
| -class LauncherIconLoader : public ChromeLauncherDelegate::AppIconLoader,
|
| - public ImageLoadingTracker::Observer {
|
| - public:
|
| - LauncherIconLoader(Profile* profile, ChromeLauncherDelegate* host);
|
| - virtual ~LauncherIconLoader();
|
| -
|
| - // AppIconLoader:
|
| - virtual std::string GetAppID(TabContentsWrapper* tab) OVERRIDE;
|
| - virtual bool IsValidID(const std::string& id) OVERRIDE;
|
| - virtual void FetchImage(const std::string& id) OVERRIDE;
|
| -
|
| - // ImageLoadingTracker::Observer:
|
| - virtual void OnImageLoaded(SkBitmap* image,
|
| - const ExtensionResource& resource,
|
| - int index) OVERRIDE;
|
| -
|
| - private:
|
| - typedef std::map<int, std::string> ImageLoaderIDToExtensionIDMap;
|
| -
|
| - // Returns the extension for the specified tab.
|
| - const Extension* GetExtensionForTab(TabContentsWrapper* tab);
|
| -
|
| - // Returns the extension by ID.
|
| - const Extension* GetExtensionByID(const std::string& id);
|
| -
|
| - Profile* profile_;
|
| -
|
| - // ChromeLauncherDelegate we're associated with (and owned by).
|
| - ChromeLauncherDelegate* 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(LauncherIconLoader);
|
| -};
|
| -
|
| -#endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_LAUNCHER_ICON_LOADER_H_
|
|
|