Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
|
blundell
2014/05/20 14:12:18
This file should get added to favicon_base.gypi.
| |
| 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 | |
| 19 // |favicon_base::FaviconImageResult| object. | |
| 20 typedef base::Callback<void(const FaviconImageResult&)> FaviconImageCallback; | |
| 21 | |
| 22 // Callback for functions returning raw data for a favicon. | |
| 23 typedef base::Callback<void(const FaviconBitmapResult&)> FaviconRawCallback; | |
| 24 | |
| 25 // Callback for functions returning raw data for a favicon in multiple | |
| 26 // resolution. | |
| 27 typedef base::Callback<void(const std::vector<FaviconBitmapResult>&)> | |
| 28 FaviconResultsCallback; | |
| 29 | |
| 30 } // namespace favicon_base | |
| 31 | |
| 32 #endif // COMPONENTS_FAVICON_BASE_FAVICON_CALLBACK_H_ | |
| OLD | NEW |