Chromium Code Reviews| 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..d1d8ede8b115b7251d52bfcb64d298606912f510 |
| --- /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 = 1; |
| + rvh->Send(new IconMsg_DownloadFavicon(rvh->GetRoutingID(), id++, url, |
| + image_size)); |
|
stevenjb
2012/07/10 15:30:15
nit: align image_size with new
|
| + return id; |
| +} |