Chromium Code Reviews| Index: content/common/image_downloader/image_downloader_types.mojom |
| diff --git a/content/common/image_downloader/image_downloader_types.mojom b/content/common/image_downloader/image_downloader_types.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fb0e3630ac22fe20c00e8ddcb6ce3c79a18630b3 |
| --- /dev/null |
| +++ b/content/common/image_downloader/image_downloader_types.mojom |
| @@ -0,0 +1,23 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module image_downloader; |
| + |
| +import "third_party/mojo_services/src/geometry/public/interfaces/geometry.mojom"; |
| +import "skia/public/interfaces/bitmap.mojom"; |
| + |
| +struct DownloadReq { |
|
Ken Rockot(use gerrit already)
2015/04/14 16:14:20
nit: I think we shouldn't abbreviate this. Downloa
Anand Mistry (off Chromium)
2015/04/16 01:07:16
I too think these should live in image_downloader.
leonhsl(Using Gerrit)
2015/04/17 06:14:34
Done.
Combine image_downloader_types.mojom into i
|
| + string url; |
| + bool is_favicon; |
| + uint32 max_bitmap_size; |
| + bool bypass_cache; |
| +}; |
| + |
| +struct DownloadResult { |
| + int32 http_status_code; |
|
Anand Mistry (off Chromium)
2015/04/16 01:07:16
uint32. HTTP status codes are defined to be 3-digi
leonhsl(Using Gerrit)
2015/04/17 06:14:34
The old IPC message ImageHostMsg_DidDownloadImage
|
| + string url; |
|
Anand Mistry (off Chromium)
2015/04/16 01:07:16
Why is this needed? As far as I can tell, it never
leonhsl(Using Gerrit)
2015/04/17 06:14:34
Done. Yes we can omit it from response.
|
| + array<skia.Bitmap> images; |
| + array<mojo.Size> original_image_sizes; |
| +}; |
| + |