| Index: chrome/browser/favicon/favicon_util.cc
|
| diff --git a/chrome/browser/favicon/favicon_util.cc b/chrome/browser/favicon/favicon_util.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..737b15f30d305624d5076fa38d4419ec2df1a392
|
| --- /dev/null
|
| +++ b/chrome/browser/favicon/favicon_util.cc
|
| @@ -0,0 +1,19 @@
|
| +// 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.
|
| +
|
| +#include "chrome/browser/favicon/favicon_util.h"
|
| +
|
| +#include "chrome/common/icon_messages.h"
|
| +#include "content/public/browser/render_view_host.h"
|
| +#include "googleurl/src/gurl.h"
|
| +
|
| +// static
|
| +int FaviconUtil::DownloadFavicon(content::RenderViewHost* rvh,
|
| + GURL url,
|
| + int image_size) {
|
| + static int id = 0;
|
| + rvh->Send(new IconMsg_DownloadFavicon(rvh->GetRoutingID(), ++id, url,
|
| + image_size));
|
| + return id;
|
| +}
|
|
|