mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
23 lines
802 B
Plaintext
23 lines
802 B
Plaintext
// 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 content.mojom;
|
|
|
|
import "skia/public/interfaces/bitmap.mojom";
|
|
import "ui/gfx/geometry/mojo/geometry.mojom";
|
|
import "url/mojom/url.mojom";
|
|
|
|
interface ImageDownloader {
|
|
// Fetch and decode an image from a given URL.
|
|
// Returns the decoded images, or http_status_code to indicate error.
|
|
// Each call is independent, overlapping calls are possible.
|
|
DownloadImage(url.mojom.Url url,
|
|
bool is_favicon,
|
|
uint32 max_bitmap_size,
|
|
bool bypass_cache)
|
|
=> (int32 http_status_code,
|
|
array<skia.mojom.Bitmap> images,
|
|
array<gfx.mojom.Size> original_image_sizes);
|
|
};
|