OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_GLUE_IMAGE_RESOURCE_FETCHER_H_ | 5 #ifndef WEBKIT_GLUE_IMAGE_RESOURCE_FETCHER_H_ |
6 #define WEBKIT_GLUE_IMAGE_RESOURCE_FETCHER_H_ | 6 #define WEBKIT_GLUE_IMAGE_RESOURCE_FETCHER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback_old.h" |
10 #include "webkit/glue/resource_fetcher.h" | 10 #include "webkit/glue/resource_fetcher.h" |
11 | 11 |
12 class SkBitmap; | 12 class SkBitmap; |
13 | 13 |
14 namespace webkit_glue { | 14 namespace webkit_glue { |
15 | 15 |
16 // ImageResourceFetcher handles downloading an image for a webview. Once | 16 // ImageResourceFetcher handles downloading an image for a webview. Once |
17 // downloading is done the supplied callback is notified. ImageResourceFetcher | 17 // downloading is done the supplied callback is notified. ImageResourceFetcher |
18 // is used to download the favicon and images for web apps. | 18 // is used to download the favicon and images for web apps. |
19 class ImageResourceFetcher { | 19 class ImageResourceFetcher { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 // Does the actual download. | 56 // Does the actual download. |
57 scoped_ptr<ResourceFetcher> fetcher_; | 57 scoped_ptr<ResourceFetcher> fetcher_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(ImageResourceFetcher); | 59 DISALLOW_COPY_AND_ASSIGN(ImageResourceFetcher); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace webkit_glue | 62 } // namespace webkit_glue |
63 | 63 |
64 #endif // WEBKIT_GLUE_IMAGE_RESOURCE_FETCHER_H_ | 64 #endif // WEBKIT_GLUE_IMAGE_RESOURCE_FETCHER_H_ |
OLD | NEW |