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

Side by Side Diff: components/favicon_base/favicon_callback.h

Issue 291643002: Move favicon callbacks to favicon_base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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 unified diff | Download patch
« no previous file with comments | « components/favicon_base.gypi ('k') | components/favicon_base/favicon_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_FAVICON_BASE_FAVICON_CALLBACK_H_
6 #define COMPONENTS_FAVICON_BASE_FAVICON_CALLBACK_H_
7
8 #include <vector>
9
10 #include "base/callback.h"
11
12 namespace favicon_base {
13
14 struct FaviconBitmapResult;
15 struct FaviconImageResult;
16
17 // Callback for functions that can be used to return a |gfx::Image| and the
18 // |GURL| it is loaded from. They are returned as a |FaviconImageResult| object.
19 typedef base::Callback<void(const FaviconImageResult&)> FaviconImageCallback;
20
21 // Callback for functions returning raw data for a favicon. In
22 // |FaviconBitmapResult|, the data is not yet converted as a |gfx::Image|.
23 typedef base::Callback<void(const FaviconBitmapResult&)> FaviconRawCallback;
24
25 // Callback for functions returning raw data for a favicon in multiple
26 // resolution. In |FaviconBitmapResult|, the data is not yet converted as a
27 // |gfx::Image|.
28 typedef base::Callback<void(const std::vector<FaviconBitmapResult>&)>
29 FaviconResultsCallback;
30
31 } // namespace favicon_base
32
33 #endif // COMPONENTS_FAVICON_BASE_FAVICON_CALLBACK_H_
OLDNEW
« no previous file with comments | « components/favicon_base.gypi ('k') | components/favicon_base/favicon_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698