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

Side by Side Diff: webkit/glue/image_resource_fetcher.h

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/iframe_redirect_unittest.cc ('k') | webkit/glue/image_resource_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "webkit/glue/resource_fetcher.h" 9 #include "webkit/glue/resource_fetcher.h"
10 10
11 class SkBitmap; 11 class SkBitmap;
12 class WebViewImpl; 12 class WebViewImpl;
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 hosting WebViewImpl is notified. ImageResourceFetcher 17 // downloading is done the hosting WebViewImpl 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 {
20 public: 20 public:
21 typedef Callback2<ImageResourceFetcher*, const SkBitmap&>::Type Callback; 21 typedef Callback2<ImageResourceFetcher*, const SkBitmap&>::Type Callback;
22 22
23 ImageResourceFetcher(const GURL& image_url, 23 ImageResourceFetcher(const GURL& image_url,
24 WebFrame* frame, 24 WebKit::WebFrame* frame,
25 int id, 25 int id,
26 int image_size, 26 int image_size,
27 Callback* callback); 27 Callback* callback);
28 28
29 virtual ~ImageResourceFetcher(); 29 virtual ~ImageResourceFetcher();
30 30
31 // URL of the image we're downloading. 31 // URL of the image we're downloading.
32 const GURL& image_url() const { return image_url_; } 32 const GURL& image_url() const { return image_url_; }
33 33
34 // Unique identifier for the request. 34 // Unique identifier for the request.
(...skipping 19 matching lines...) Expand all
54 54
55 // Does the actual download. 55 // Does the actual download.
56 scoped_ptr<ResourceFetcher> fetcher_; 56 scoped_ptr<ResourceFetcher> fetcher_;
57 57
58 DISALLOW_EVIL_CONSTRUCTORS(ImageResourceFetcher); 58 DISALLOW_EVIL_CONSTRUCTORS(ImageResourceFetcher);
59 }; 59 };
60 60
61 } // namespace webkit_glue 61 } // namespace webkit_glue
62 62
63 #endif // WEBKIT_GLUE_IMAGE_RESOURCE_FETCHER_H_ 63 #endif // WEBKIT_GLUE_IMAGE_RESOURCE_FETCHER_H_
OLDNEW
« no previous file with comments | « webkit/glue/iframe_redirect_unittest.cc ('k') | webkit/glue/image_resource_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698