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

Side by Side Diff: chrome/browser/bitmap_fetcher/bitmap_fetcher_delegate.h

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BITMAP_FETCHER_BITMAP_FETCHER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_BITMAP_FETCHER_BITMAP_FETCHER_DELEGATE_H_
6 #define CHROME_BROWSER_BITMAP_FETCHER_BITMAP_FETCHER_DELEGATE_H_ 6 #define CHROME_BROWSER_BITMAP_FETCHER_BITMAP_FETCHER_DELEGATE_H_
7 7
8 #include "base/macros.h"
8 #include "url/gurl.h" 9 #include "url/gurl.h"
9 10
10 class SkBitmap; 11 class SkBitmap;
11 12
12 namespace chrome { 13 namespace chrome {
13 14
14 // A delegate interface for users of BitmapFetcher. 15 // A delegate interface for users of BitmapFetcher.
15 class BitmapFetcherDelegate { 16 class BitmapFetcherDelegate {
16 public: 17 public:
17 BitmapFetcherDelegate() {} 18 BitmapFetcherDelegate() {}
18 19
19 // This will be called when the bitmap has been requested, whether or not the 20 // 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 // 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 // match up the bitmap with a specific request. |bitmap| may be NULL if the
22 // image fails to be downloaded or decoded. 23 // image fails to be downloaded or decoded.
23 virtual void OnFetchComplete(const GURL& url, const SkBitmap* bitmap) = 0; 24 virtual void OnFetchComplete(const GURL& url, const SkBitmap* bitmap) = 0;
24 25
25 protected: 26 protected:
26 virtual ~BitmapFetcherDelegate() {} 27 virtual ~BitmapFetcherDelegate() {}
27 28
28 DISALLOW_COPY_AND_ASSIGN(BitmapFetcherDelegate); 29 DISALLOW_COPY_AND_ASSIGN(BitmapFetcherDelegate);
29 }; 30 };
30 31
31 } // namespace chrome 32 } // namespace chrome
32 33
33 #endif // CHROME_BROWSER_BITMAP_FETCHER_BITMAP_FETCHER_DELEGATE_H_ 34 #endif // CHROME_BROWSER_BITMAP_FETCHER_BITMAP_FETCHER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/bitmap_fetcher/bitmap_fetcher_browsertest.cc ('k') | chrome/browser/bitmap_fetcher/bitmap_fetcher_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698