OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ | 5 #ifndef CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ |
6 #define CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ | 6 #define CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 class MultiResolutionImageResourceFetcher { | 30 class MultiResolutionImageResourceFetcher { |
31 public: | 31 public: |
32 typedef base::Callback<void(MultiResolutionImageResourceFetcher*, | 32 typedef base::Callback<void(MultiResolutionImageResourceFetcher*, |
33 const std::vector<SkBitmap>&)> Callback; | 33 const std::vector<SkBitmap>&)> Callback; |
34 | 34 |
35 MultiResolutionImageResourceFetcher( | 35 MultiResolutionImageResourceFetcher( |
36 const GURL& image_url, | 36 const GURL& image_url, |
37 blink::WebFrame* frame, | 37 blink::WebFrame* frame, |
38 int id, | 38 int id, |
39 blink::WebURLRequest::RequestContext request_context, | 39 blink::WebURLRequest::RequestContext request_context, |
| 40 blink::WebURLRequest::CachePolicy cache_policy, |
40 const Callback& callback); | 41 const Callback& callback); |
41 | 42 |
42 virtual ~MultiResolutionImageResourceFetcher(); | 43 virtual ~MultiResolutionImageResourceFetcher(); |
43 | 44 |
44 // URL of the image we're downloading. | 45 // URL of the image we're downloading. |
45 const GURL& image_url() const { return image_url_; } | 46 const GURL& image_url() const { return image_url_; } |
46 | 47 |
47 // Unique identifier for the request. | 48 // Unique identifier for the request. |
48 int id() const { return id_; } | 49 int id() const { return id_; } |
49 | 50 |
(...skipping 18 matching lines...) Expand all Loading... |
68 | 69 |
69 // Does the actual download. | 70 // Does the actual download. |
70 scoped_ptr<ResourceFetcher> fetcher_; | 71 scoped_ptr<ResourceFetcher> fetcher_; |
71 | 72 |
72 DISALLOW_COPY_AND_ASSIGN(MultiResolutionImageResourceFetcher); | 73 DISALLOW_COPY_AND_ASSIGN(MultiResolutionImageResourceFetcher); |
73 }; | 74 }; |
74 | 75 |
75 } // namespace content | 76 } // namespace content |
76 | 77 |
77 #endif // CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ | 78 #endif // CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ |
OLD | NEW |