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

Side by Side Diff: content/common/image_downloader/image_downloader.mojom

Issue 2083433002: Mojo: Remove url type converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « content/common/image_downloader/OWNERS ('k') | content/content_browser.gypi » ('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 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 };
OLDNEW
« no previous file with comments | « content/common/image_downloader/OWNERS ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698