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