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_SUGGESTIONS_IMAGE_FETCHER_IMPL_H_ | |
|
huangs
2014/09/22 21:51:13
Remove _IMPL_
Mathieu
2014/09/23 14:59:06
Good catch
| |
| 6 #define COMPONENTS_SUGGESTIONS_IMAGE_FETCHER_IMPL_H_ | |
| 7 | |
| 8 #include <map> | |
|
huangs
2014/09/22 21:51:14
These STD includes are not needed.
Mathieu
2014/09/23 14:59:06
Done.
| |
| 9 #include <utility> | |
| 10 #include <vector> | |
| 11 | |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/callback.h" | |
| 14 #include "components/suggestions/image_fetcher_delegate.h" | |
| 15 #include "ui/gfx/image/image_skia.h" | |
|
huangs
2014/09/22 21:51:13
Can forward declare SkBitmap ?
What's basictypes.
Mathieu
2014/09/23 14:59:06
Done.
| |
| 16 #include "url/gurl.h" | |
| 17 | |
| 18 namespace net { | |
| 19 class URLRequestContextGetter; | |
|
huangs
2014/09/22 21:51:13
Unused.
Mathieu
2014/09/23 14:59:06
Done.
| |
| 20 } | |
| 21 | |
| 22 namespace suggestions { | |
| 23 | |
| 24 // A class used to fetch server images. | |
| 25 class ImageFetcher { | |
| 26 public: | |
| 27 ImageFetcher() {} | |
| 28 virtual ~ImageFetcher() {} | |
| 29 | |
| 30 virtual void SetImageFetcherDelegate(ImageFetcherDelegate* delegate) = 0; | |
| 31 | |
| 32 virtual void StartOrQueueNetworkRequest( | |
| 33 const GURL& url, const GURL& image_url, | |
| 34 base::Callback<void(const GURL&, const SkBitmap*)> callback) = 0; | |
| 35 }; | |
|
huangs
2014/09/22 21:51:13
DISALLOW_COPY_AND_ASSIGN?
Mathieu
2014/09/23 14:59:06
Done.
| |
| 36 | |
| 37 } // namespace suggestions | |
| 38 | |
| 39 #endif // COMPONENTS_SUGGESTIONS_IMAGE_FETCHER_IMPL_H_ | |
| OLD | NEW |