OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 module content.mojom; | 5 module content.mojom; |
6 | 6 |
7 import "skia/public/interfaces/bitmap.mojom"; | 7 import "skia/public/interfaces/bitmap.mojom"; |
8 import "ui/gfx/geometry/mojo/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 9 import "url/mojo/url.mojom"; |
9 | 10 |
10 interface ImageDownloader { | 11 interface ImageDownloader { |
11 // Fetch and decode an image from a given URL. | 12 // Fetch and decode an image from a given URL. |
12 // Returns the decoded images, or http_status_code to indicate error. | 13 // Returns the decoded images, or http_status_code to indicate error. |
13 // Each call is independent, overlapping calls are possible. | 14 // Each call is independent, overlapping calls are possible. |
14 DownloadImage(string url, | 15 DownloadImage(url.mojom.Url url, |
15 bool is_favicon, | 16 bool is_favicon, |
16 uint32 max_bitmap_size, | 17 uint32 max_bitmap_size, |
17 bool bypass_cache) | 18 bool bypass_cache) |
18 => (int32 http_status_code, | 19 => (int32 http_status_code, |
19 array<skia.mojom.Bitmap> images, | 20 array<skia.mojom.Bitmap> images, |
20 array<gfx.mojom.Size> original_image_sizes); | 21 array<gfx.mojom.Size> original_image_sizes); |
21 }; | 22 }; |
OLD | NEW |