Add ICU message format support
[chromium-blink-merge.git] / chrome / browser / bitmap_fetcher / bitmap_fetcher_delegate.h
blob255113568ca240b306aad8403c78542991c99572
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.
5 #ifndef CHROME_BROWSER_BITMAP_FETCHER_BITMAP_FETCHER_DELEGATE_H_
6 #define CHROME_BROWSER_BITMAP_FETCHER_BITMAP_FETCHER_DELEGATE_H_
8 #include "url/gurl.h"
10 class SkBitmap;
12 namespace chrome {
14 // A delegate interface for users of BitmapFetcher.
15 class BitmapFetcherDelegate {
16 public:
17 BitmapFetcherDelegate() {}
19 // This will be called when the bitmap has been requested, whether or not the
20 // request succeeds. |url| is the URL that was originally fetched so we can
21 // match up the bitmap with a specific request. |bitmap| may be NULL if the
22 // image fails to be downloaded or decoded.
23 virtual void OnFetchComplete(const GURL& url, const SkBitmap* bitmap) = 0;
25 protected:
26 virtual ~BitmapFetcherDelegate() {}
28 DISALLOW_COPY_AND_ASSIGN(BitmapFetcherDelegate);
31 } // namespace chrome
33 #endif // CHROME_BROWSER_BITMAP_FETCHER_BITMAP_FETCHER_DELEGATE_H_