| Index: chrome/browser/favicon_delegate.h
|
| diff --git a/chrome/browser/favicon_delegate.h b/chrome/browser/favicon_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ee229cd683c14b988be2d0432b358b949016bab4
|
| --- /dev/null
|
| +++ b/chrome/browser/favicon_delegate.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright (c) 2011 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_FAVICON_DELEGATE_H__
|
| +#define CHROME_BROWSER_FAVICON_DELEGATE_H__
|
| +#pragma once
|
| +
|
| +#include "chrome/browser/icon_delegate.h"
|
| +
|
| +class TabContents;
|
| +
|
| +class FaviconDelegate : public IconDelegate {
|
| + public:
|
| + explicit FaviconDelegate(TabContents* tab_contents);
|
| + virtual ~FaviconDelegate();
|
| +
|
| + virtual void UpdateFaviconImageData(NavigationEntry* entry,
|
| + const GURL& url,
|
| + scoped_refptr<RefCountedMemory> data);
|
| +
|
| + virtual void UpdateFaviconImageData(NavigationEntry* entry,
|
| + scoped_refptr<RefCountedMemory> data);
|
| +
|
| + virtual void UpdateFaviconImageData(NavigationEntry* entry,
|
| + const SkBitmap& image);
|
| +
|
| + virtual void UpdateFaviconURL(NavigationEntry* entry, const GURL& url);
|
| +
|
| + // Scales the image such that either the width and/or height is 16 pixels
|
| + // wide. Does nothing if the image is empty.
|
| + virtual SkBitmap ConvertToFaviconSize(const SkBitmap& image) = 0;
|
| +
|
| + virtual int GetIconSize();
|
| +
|
| + private:
|
| + TabContents* tab_contents_;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_FAVICON_DELEGATE_H__
|
|
|